3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Provider { public function boot(ArgumentType $x) { return; } } class ProviderB extends Provider { public function boot(ArgumentType $x) { return 'yay'; } } $f = new ProviderB; $f->boot(1, 2, 3);
based on oWAcp
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught TypeError: Argument 1 passed to ProviderB::boot() must be an instance of ArgumentType, integer given, called in /in/PTur5 on line 25 and defined in /in/PTur5:17 Stack trace: #0 /in/PTur5(25): ProviderB->boot(1, 2, 3) #1 {main} thrown in /in/PTur5 on line 17
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Catchable fatal error: Argument 1 passed to ProviderB::boot() must be an instance of ArgumentType, integer given, called in /in/PTur5 on line 25 and defined in /in/PTur5 on line 17
Process exited with code 255.