3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_NONE); $a = "2d9"; $a++; $a++; echo $a; // 2 // 2d11 //*3 // 4 // 4d9 // r2d2 echo "\n"; $a = "0"; $b = 0; $c = NULL; if ($a == $b && $b == $c) { echo $a == $c ? 'true' : 'false'; } else { echo 'none'; } // true //*false // none // 42
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in /in/3PU8L on line 2 3 false
Output for hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in /in/3PU8L on line 2 Warning: error_reporting() expects parameter 1 to be integer, string given in /in/3PU8L on line 2 3 false
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/3PU8L on line 28
Process exited with code 255.