3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$a = array("a" => 5); //$a = $c; //echo !isset($a['d']['e']['f']); define(TEST, 1); define(TEST, 2); echo TEST; //$b = array('test', "deb"); //$c = array("sdf", "dsf"); //var_dump($a + $b); //class A { // protected $b = 5; //} //$a = new A(); //var_dump(json_decode(json_encode($a)));
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
Notice: Use of undefined constant TEST - assumed 'TEST' in /in/CYijB on line 11 1
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/CYijB on line 30
Process exited with code 255.