3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test(boolean $param) {} test(true);
Output for 7.3.0alpha1 - 7.3.0rc3
Fatal error: Uncaught TypeError: Argument 1 passed to test() must be an instance of boolean, bool given, called in /in/14T3F on line 4 and defined in /in/14T3F:3 Stack trace: #0 /in/14T3F(4): test(true) #1 {main} thrown in /in/14T3F on line 3
Process exited with code 255.
Output for 7.0.28 - 7.2.11
Fatal error: Uncaught TypeError: Argument 1 passed to test() must be an instance of boolean, boolean given, called in /in/14T3F on line 4 and defined in /in/14T3F:3 Stack trace: #0 /in/14T3F(4): test(true) #1 {main} thrown in /in/14T3F on line 3
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught TypeError: Argument 1 passed to test() must be an instance of boolean, bool given in /in/14T3F:-1 Stack trace: #0 /in/14T3F(-1): test() #1 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught TypeError: Argument 1 passed to test() must be an instance of boolean, bool given in /in/14T3F:3 Stack trace: #0 /in/14T3F(4): test() #1 {main}
Process exited with code 255.
Output for 5.6.30
Catchable fatal error: Argument 1 passed to test() must be an instance of boolean, boolean given, called in /in/14T3F on line 4 and defined in /in/14T3F on line 3
Process exited with code 255.