3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); $a = $b; var_dump(error_get_last()); error_reporting(0); $c = $d; var_dump(error_get_last());
Output for 5.2.0 - 7.1.0
Notice: Undefined variable: b in /in/5OZpt on line 4 array(4) { ["type"]=> int(8) ["message"]=> string(21) "Undefined variable: b" ["file"]=> string(9) "/in/5OZpt" ["line"]=> int(4) } array(4) { ["type"]=> int(8) ["message"]=> string(21) "Undefined variable: d" ["file"]=> string(9) "/in/5OZpt" ["line"]=> int(8) }
Output for 5.0.4 - 5.1.6
Notice: Undefined variable: b in /in/5OZpt on line 4 Fatal error: Call to undefined function error_get_last() in /in/5OZpt on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: b in /in/5OZpt on line 4 Fatal error: Call to undefined function error_get_last() in /in/5OZpt on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: b in /in/5OZpt on line 4 Fatal error: Call to undefined function: error_get_last() in /in/5OZpt on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: b in /in/5OZpt on line 4 Fatal error: Call to undefined function: error_get_last() in /in/5OZpt on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: b in /in/5OZpt on line 4 Fatal error: Call to undefined function: error_get_last() in /in/5OZpt on line 5