3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a($n, $str, $file, $l, $context, $test) { var_dump($test); } set_error_handler("a"); function test() { $unusedvar; } test();
based on 5XqYs
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Output for hhvm-3.10.0 - 3.13.2
array(2) { [0]=> array(2) { ["file"]=> string(9) "/in/MbCHk" ["line"]=> int(8) } [1]=> array(4) { ["file"]=> string(9) "/in/MbCHk" ["line"]=> int(10) ["function"]=> string(4) "test" ["args"]=> array(0) { } } }
Output for 4.3.0 - 5.0.5
Warning: Missing argument 6 for a() in /in/MbCHk on line 2 NULL