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

checkdnsrrFunction

php

<?php
   var_dump(checkdnsrr('[email protected]',"MX"));
?>

GetClient

php

<?php
function getallheaders()
{
    $headers = [];
       foreach ($_SERVER as $name => $value)
       {
          echo "$name: $value\n";
            
       }
       return $headers;
} 

getallheaders();
?>

sh: 1: /usr/sbin/sendmail: not found

php

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
$name = $_POST['name'];
$phone = $_POST['phone'];
$priority = $_POST['priority'];
$type = $_POST['type'];
$message = $_POST['message'];
$formcontent=" From: $name \n Phone: $phone \n Priority: $priority \n Type: $type \n Message: $message";
$recipient = "[email protected]";
$subject = "Contact Form";
$mailheader = "From: $email \r\n";

echo "Thank You!" . " -" . "<a href='index.html' style='text-decoration:none;color:#ff0099;'> Return Home</a>";
?>




kkkk

php

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

Replace String in PHP

php

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
$data = 'https://app.wellnezz.life/login/confirm.php?redirect=https%3A%2F%2Fapp.wellnezz.life%2Fadmin%2Ftool%2Fmobile%2Flaunch.php%3Fservice%3Dmoodle_mobile_app%26amp%3Bpassport%3D438.47807031870644%26amp%3Burlscheme%3Dmoodlemobile&data=hP9BRv0DZV0OqmH/chintan%2Eavantsoft';
   
   echo strpos($data, 'moodle_mobile_app') !== false;
   echo '\\n ';
   echo '\\n ';
   $data = str_replace('moodle_mobile_app', 'wellnezz_mobile_app',$data);
   $data = str_replace('moodlemobile', 'wellnezzmobile',$data);

   echo $data;
?>
</body>
</html>

Hello

php

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

Execute PHP Online

php

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

recursive code to iterate the stdClass object

php

<?php
   // Create new stdClass Object
	$init = new stdClass;

	// Add some test data
	$init->foo = "2019-02-15T11:12:28";
	$init->bar = new stdClass;
	$init->bar->baaz = "Testing&nbsp<the";
	$init->bar->fooz = new stdClass;
	$init->bar->fooz->baz = "Testing<> again";
	$init->foox = "Just<> test";

	
	
	
	function clean($string) {
      return preg_replace("/[^a-zA-Z0-9_\s]/", "", $string);
    }
	function striploop($obj){
	    $stipfields=['FirstName','LastName','MailingStreet','MailingCity'];
    	foreach($obj as $key => $item) {
           
            if(is_object($item) || is_array($item))
            striploop($item);
            if(is_string($item) && in_array($key,$stipfields))
            $obj->$key=clean($item);
          }
      
      return $obj;
	}
	
	// Print objects and array
	print_r(striploop($init));

Execute PHP Online

php

Unable to open file!