3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function blah(__PHP_Incomplete_Class $arg1) { echo "Hello"; } blah(new DateTime());
based on mRRQC
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught TypeError: Argument 1 passed to blah() must be an instance of __PHP_Incomplete_Class, instance of DateTime given, called in /in/V23nU on line 8 and defined in /in/V23nU:3 Stack trace: #0 /in/V23nU(8): blah(Object(DateTime)) #1 {main} thrown in /in/V23nU on line 3
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Catchable fatal error: Argument 1 passed to blah() must be an instance of __PHP_Incomplete_Class, instance of DateTime given, called in /in/V23nU on line 8 and defined in /in/V23nU on line 3
Process exited with code 255.