Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

test

php

<?php
	$url = "https://104.207.154.189/customer/getuid";
    $encryptionMethod = 'aes-128-cbc';
    $secretKey = "315a5504d921f832";
    $iv = "e43da7d1ad2c5973bafc6ef3c4924ead";
	$num = 1;

	$params = array("ids_num"=>$num);
    $iv_size = openssl_cipher_iv_length($encryptionMethod);
    $encryptedMessage = openssl_encrypt(json_encode($params), $encryptionMethod, $secretKey, 0, hex2bin($iv));
	print_r("Params:\n" . json_encode($params) . "\n");
	print_r("\n\nEncrypted:\n" . $encryptedMessage . "\n");

	$post_data = array(
		'x' => $encryptedMessage
	);

    $curl = curl_init($url);
    curl_setopt($curl, CURLOPT_POST, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post_data));
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    $response = curl_exec($curl);
	print_r("\n\nResponde:\n" . $response . "\n");
    curl_close($curl);

	$dec = $response;
	$dencryptedMessage = openssl_decrypt($dec, $encryptionMethod, $secretKey, 0, hex2bin($iv));
	print_r("\n\nDecrypted response:\n" . $dencryptedMessage);
?>

Execute PHP Online

php

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
   echo "<h1>Hello, PHP!</h1>\n";
?>
</body>
</html>

zhjopl;'/

php

<html>
<head>
<title>Student Data</title>
</head>
<body>
<form method="post">
<marquee><h2> WELCOME.....!!!!</h2></marquee>
<center> <table border="1" width="400" height="300">
<tr>
<td colspan="5" align="center" bgcolor="grey">Student's Information</td>
</tr>
<tr>
<td align="right">Name:</td> 
<td><input type="text" name="name"> </td>
</tr>
<tr>
<td align="right">Fathers Name: </td>
<td><input type="text" name="fname"> </td>
</tr>

<tr>
<td align="right">Roll No.:</td> 
<td><input type="text" name="roll"></td>
</tr>
<tr>
<td align="right">Result:</td> 
<td><input type="text" name="result"></td>
</tr>
<tr>
<td colspan="5" align="center"><input type="submit" name="submit" value="submit"><input type="reset" name="reset" value="reset"></td>
</tr> 
</table>
</center>
</form>
</body>
</html>

Execute PHP Online

php

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
    function myconverter(){
   $a = 245;
   $b = 0;
   while ($a>=2){
       $a = $a/2;
       $b = $a%2;
       $c[] = $b;
   }
   
}
    echo (string)myconverter();
    echo $c;
    // echo strrev ($str);
   
?>
</body>
</html>

1234

php

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
   echo "<h1>Hello, PHP!</h1>\n";
?>
</body>
</html>

fddaf

php

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php

   
   
   echo date('l dS \o\f F Y h:i:s A', '170817777');
   
   
?>
</body>
</html>

ffdgdf

php

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
   echo "<h1>Hello, PHP!</h1>\n";
?>
</body>
</html>

te15

php

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
   echo "<h1>Hello, PHP!</h1>\n";
?>
</body>
</html>

php-destruct

php

<?php

class NbaClub{
    public $name='jordan';
    public function __construct($name){
        $this->name = $name;
        echo "In construct\n";
    }
    public function __destruct(){
        echo "Destroying ".$this->name."\n";
    }
}

$james = new NbaClub('james lyn');
echo $james->name."\n"; //james

$james1 = $james;
$james = null; 
echo "james will not be used\n";

 

Regular Expressions

php

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
    $pattern = '/something to look for/';
    $lyrics = "Well, my daddy left home when I was three,
and he didn't leave much to Ma and me,
just this old guitar and a bottle of booze.
Now I don't blame him because he run and hid,
but the meanest thing that he ever did was
before he left he went and named me Sue.

Well, he must have thought it was quite a joke,
and it got lots of laughs from a lot of folks,
it seems I had to fight my whole life through.
Some gal would giggle and I'd get red
and some guy would laugh and I'd bust his head,
I tell you, life ain't easy for a boy named Sue.

Source: https://www.familyfriendpoems.com/poem/a-boy-named-sue-by-shel-silverstein";
   
   
   $aMatch = preg_match($pattern, $lyrics);
   echo $aMatch;

?>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.