3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a(stdClass $b) {} function b() { $args = func_get_args(); var_dump($args); } set_error_handler('b'); a('a');
based on uLZZ6
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught TypeError: Argument 1 passed to a() must be an instance of stdClass, string given, called in /in/iQmmE on line 10 and defined in /in/iQmmE:3 Stack trace: #0 /in/iQmmE(10): a('a') #1 {main} thrown in /in/iQmmE on line 3
Process exited with code 255.
Output for 5.3.20 - 5.6.28
array(5) { [0]=> int(4096) [1]=> string(114) "Argument 1 passed to a() must be an instance of stdClass, string given, called in /in/iQmmE on line 10 and defined" [2]=> string(9) "/in/iQmmE" [3]=> int(3) [4]=> array(0) { } }