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 - 4.3.6, 4.3.9 - 4.4.9, 5.0.1 - 5.0.5, 5.1.1 - 7.1.0
Notice: Constant TEST already defined in /in/0JWkL on line 12 1
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/0JWkL on line 30
Process exited with code 255.
Output for 4.3.7 - 4.3.8, 5.0.0
Notice: Constant already defined in /in/0JWkL on line 12 1