3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php set_error_handler("custom_warning_handler"); function custom_warning_handler($errno, $errstr) { switch ($errno) { case E_NOTICE: echo $errstr . "\n"; return true; break; default: return false; break; } } $myvar; echo $myvar; $myvar = 3; $myvarb = 5; echo join(' ',array($myvar,$myvarb));
based on G9bVh
Output for 5.1.0 - 7.2.0
Undefined variable: myvar 3 5
Output for 5.0.4 - 5.0.5
Undefined variable: myvar Undefined variable: myvar 3 5
Output for 4.3.0 - 5.0.3
Undefined variable: myvar Undefined variable: myvar 3 5