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).


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

Willy-2019-11-11 02:52
include "../functions/db.php";



$id = base64_decode($_GET['id']);

$sql = "SELECT * FROM tbl_permintaan
WHERE permintaan_id ='".$id."'";

$kueri = mysqli_query($link,$sql);
$get = mysqli_fetch_array($kueri,MYSQLI_ASSOC);

$permintaan_nama = "'" .str_replace(",", "','", $get['permintaan_nama'])."'";

$result = mysqli_query($link, "SELECT * FROM tbl_anggota
WHERE nta IN ($permintaan_nama)");


Cetak Kartu Anggota Pramuka Kab Tangerang

$xno = "";
$xnos = "";
$xnosend = "";
while ($row = mysqli_fetch_array($result))
$html .='


NTA : '.$row["nta"].'

Nama : '.$row["nm_anggota"].'
  TTL : '.$row["tmp_lahir"].', '.($row["tgl_lahir"]=="0000-00-00"?"":date("d-m-Y",strtotime($row["tgl_lahir"]))).'
  Agama : '.$row["agama"].'
  Gol. Darah : '.$row["gol_darah"].'
  Alamat : '.$row["alamat"].'

Tangerang, '.date("d-M-Y").'

    Gol/Jab : '.$row["golongan"].'
    Kwarran : '.$row["kwarran"].'
    Kwarcab : Tangerang
    Kwarda : Banten
      Berlaku s.d '.date("d-M-Y",strtotime("+3 YEAR")).'



$mpdf=new mPDF('P','A4','','' , 8 , 2 , 10 , 10 );
$mpdf->list_indent_first_level = 0;
echo $html;


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.