3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test($a){ echo '$a is' . (isset($a) ? '' : 'not').' set'; } echo '$b is' . (isset($b) ? '' : 'not').' set'; test($b);
Output for 5.0.4 - 7.1.0
$b isnot set Notice: Undefined variable: b in /in/amADE on line 7 $a isnot set
Output for 4.3.0 - 5.0.3
$b isnot set Notice: Undefined variable: b in /in/amADE on line 7 $a isnot set