3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function something( object $hello ) { } something( new stdClass() );
Output for 7.2.0 - 7.3.0rc3
Output for 7.0.0 - 7.1.20
Fatal error: Uncaught TypeError: Argument 1 passed to something() must be an instance of object, instance of stdClass given, called in /in/IGA8S on line 7 and defined in /in/IGA8S:3 Stack trace: #0 /in/IGA8S(7): something(Object(stdClass)) #1 {main} thrown in /in/IGA8S on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught TypeError: Argument 1 passed to something() must be an instance of object, stdClass given in /in/IGA8S:5 Stack trace: #0 /in/IGA8S(7): something() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Catchable fatal error: Argument 1 passed to something() must be an instance of object, instance of stdClass given, called in /in/IGA8S on line 7 and defined in /in/IGA8S on line 3
Process exited with code 255.