3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function my_errorhandler($errno,$errormsg) { global $my_var; $my_var = 0; echo "EROOR: $errormsg\n"; return null; } set_error_handler("my_errorhandler"); $my_var = str_repeat("A",null); var_dump($my_var); ?>
based on Kd09H
Output for 4.3.0 - 7.1.0
string(0) ""