3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo($test = 1) { echo $test; } foo(); echo $test;
Output for 5.0.4 - 7.1.0
1 Notice: Undefined variable: test in /in/i98bD on line 8
Output for 4.3.0 - 5.0.3
1 Notice: Undefined variable: test in /in/i98bD on line 8