3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function aaa(boolean $a) { var_dump($a); } aaa(false);
Output for 7.3.0alpha1 - 7.3.0rc3
Fatal error: Uncaught TypeError: Argument 1 passed to aaa() must be an instance of boolean, bool given, called in /in/MvvcD on line 7 and defined in /in/MvvcD:3 Stack trace: #0 /in/MvvcD(7): aaa(false) #1 {main} thrown in /in/MvvcD on line 3
Process exited with code 255.
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught TypeError: Argument 1 passed to aaa() must be an instance of boolean, boolean given, called in /in/MvvcD on line 7 and defined in /in/MvvcD:3 Stack trace: #0 /in/MvvcD(7): aaa(false) #1 {main} thrown in /in/MvvcD on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught TypeError: Argument 1 passed to aaa() must be an instance of boolean, bool given in /in/MvvcD:5 Stack trace: #0 /in/MvvcD(7): aaa() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Catchable fatal error: Argument 1 passed to aaa() must be an instance of boolean, boolean given, called in /in/MvvcD on line 7 and defined in /in/MvvcD on line 3
Process exited with code 255.