3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($value = true) { var_dump($value); } test(); test($defaultValue); $defaultValue = null; test($defaultValue);
based on 9djpY
Output for 5.0.4 - 7.2.0
bool(true) Notice: Undefined variable: defaultValue in /in/JcLRP on line 7 NULL NULL
Output for 4.3.0 - 5.0.3
bool(true) Notice: Undefined variable: defaultValue in /in/JcLRP on line 7 NULL NULL