3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=1; $b=2; $c=3; unset($a); unset($b); unset($c); var_dump($a); var_dump($b); var_dump($c); $a = array(1,2); echo ($a)? 'pass' : 'fail';
Output for 5.0.4 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: a in /in/aD278 on line 8 NULL Notice: Undefined variable: b in /in/aD278 on line 9 NULL Notice: Undefined variable: c in /in/aD278 on line 10 NULL pass
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/aD278 on line 8 NULL Notice: Undefined variable: b in /in/aD278 on line 9 NULL Notice: Undefined variable: c in /in/aD278 on line 10 NULL pass