3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a; $c = $b + 1; foo($b);
based on Vv0cl
Output for 7.0.0 - 7.3.0alpha1
Notice: Undefined variable: b in /in/42beb on line 4 Fatal error: Uncaught Error: Call to undefined function foo() in /in/42beb:6 Stack trace: #0 {main} thrown in /in/42beb on line 6
Process exited with code 255.
Output for hhvm-3.22.0
Notice: Undefined variable: a in /in/42beb on line -1 Notice: Undefined variable: b in /in/42beb on line -1 Fatal error: Uncaught Error: Call to undefined function foo() in /in/42beb:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Notice: Undefined variable: a in /in/42beb on line 2 Notice: Undefined variable: b in /in/42beb on line 4 Fatal error: Uncaught Error: Call to undefined function foo() in /in/42beb:6 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Notice: Undefined variable: b in /in/42beb on line 4 Fatal error: Call to undefined function foo() in /in/42beb on line 6
Process exited with code 255.