Toolbox for developers / PHP online test

PHP syntax checker

PHP tester allows to check your PHP code syntax, and find PHP errors easily and quickly. This PHP code checker tool highlights and goes to line with a syntax error.

To check your code, you must copy and paste, drag and drop a PHP file or directly type in the "PHP code" online editor below, and click on "Check PHP syntax" button.

You can see the user guide to help you to use this php checker tool.


PHP code




PHP version for code checker



User guide

To check syntax code:

  • First, Drag and drop your PHP file or copy / paste your PHP text directly into the editor above.
  • Finally, you must click on "Check PHP syntax" button to display if there is an syntax error in your code.


PHP code checker tool

PHP is a server-side scripting language, but can also be used as a general-purpose programming language.

PHP error checker tool allows to find syntax errors (lint). You can test your PHP code online directly in your browser.

If a syntax error is detected, then the line in error is highlighted, and it jumps to it to save time (no need to search the line).

It can be useful to make online test to save time (deployment ...).

Note: This tool no longer offers sandbox, it was not good enough.


About PHP

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a server-side scripting language especially suited for web development.PHP script can be embedded into HTML. PHP can also be used as a general-purpose programming language.

PHP has become popular among Web Developers thanks to its advantages: Simplicity, Free, Flexible and Scalable, CMS, Vast Community ...



You can report a bug or give feedback by adding a comment (below) or by clicking "Contact me" link (at the top right hand corner of the page).

Comments




Anonymous-2019-08-23 09:17
function writeToLog($data, $title = '') {
$log = "\n------------------------\n";
$log .= date("Y.m.d G:i:s") . "\n";
$log .= (strlen($title) > 0 ? $title : 'DEBUG') . "\n";
$log .= print_r($data, 1);
$log .= "\n------------------------\n";
file_put_contents(getcwd() . '/hook.log', $log, FILE_APPEND);
return true;
}

$defaults = array("your-name' => '', 'your-email' => '', 'your-message' => '');

if (array_key_exists("saved", $_REQUEST)) {
$defaults = $_REQUEST;
writeToLog($_REQUEST, "webform");

$queryUrl = "https://nehemiaswall.bitrix24.com/rest/19/3sqng6q0a3tfac03/crm.lead.add.json";
$queryData = http_build_query(array( "fields" => array(
"TITLE" => $_REQUEST["your-name"],
"NAME" => $_REQUEST["your-name"],
"LAST_NAME" => $_REQUEST["your-name"],
"STATUS_ID" => "NEW",
"OPENED" => "Y",
"ASSIGNED_BY_ID" => 1,
"EMAIL" => array(array("VALUE" => $_REQUEST["your-email"], "VALUE_TYPE" => "WORK" )),
"COMMENT" => array(array("VALUE" => $_REQUEST["your-message"],"VALUE_TYPE" => "WORK" )),
),
"params" => array("REGISTER_SONET_EVENT" => "Y")
));

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_POST => 1,
CURLOPT_HEADER => 0,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => $queryUrl,
CURLOPT_POSTFIELDS => $queryData,
));

$result = curl_exec($curl);
curl_close($curl);

$result = json_decode($result, 1);
writeToLog($result, "webform result");

if (array_key_exists('error', $result)) echo "Error saving lead: ".$result['error_description']."
";
}


Anonymous-2019-09-04 20:41



Add - Free Classifieds Ads.



























Business



Education



For Sales



Garden



Home



Industries



Jobs



Matrimonial



Real Estate



Re Sales



Services



Vehicles



Restaurants, Hotel and Resorts



Building & Construction



Travel



Health



Gym Equipments



Tenders




Public Notice



Appeals


 
FreeClassifiedsAd  Publish Post an Ad






$adde = $_POST['adde'];
$add = $_POST['subcategory'];

$title = $_POST['title'];
$phone = $_POST['phone'];
$name = $_POST['name'];
$emaill = $_POST['emaill'];


$todayis = date("l, F j, Y") ;

$attn = $attn ;
$subject = $adde;

$notes = stripcslashes($notes);

$message = " $todayis IST] \n

$Ad-Category: $adde \n
$Ad-Title: $add \n
$Ad-Detail: $title \n
$Phone: $phone \n
$Name: $name \n
$E-Mail ID: $emaill \n


$From: $name ($emaill)\n
";

$from = "From: $emaill\r\n";


$mail("infohubb2c@gmail.com", $adde, $message, $from);

?>



Date:


Thank You :

(

)


?>


Back to Post";
?>


















shivanee-2019-09-04 20:43


shivanee-2019-09-04 20:45
my site is error checking now



Disclaimer: The tools are provided "as is", without warranty of any kind, either express or implied.
Any links to third-party website or software available on this website are provided "as is",
without warranty of any kind, either express or implied and are to be used at your own risk.