3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "test!"; $b = "test B!"; function errhnd($a, $b, $errno, $errstr, $errfile, $errline) { # need $a and $b vars here! echo $a; echo "<br />"; echo $b; echo "<br />"; echo $errno; } set_error_handler($a, $b, 'errhnd');
Output for 5.0.0 - 7.1.0
Warning: set_error_handler() expects at most 2 parameters, 3 given in /in/uUMhh on line 15
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for set_error_handler() in /in/uUMhh on line 15