3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function na(boolean $d) { var_dump($d); } na(true);
based on jmS5d
Output for 7.3.0alpha1 - 7.3.0rc3
Fatal error: Uncaught TypeError: Argument 1 passed to na() must be an instance of boolean, bool given, called in /in/lXeOd on line 8 and defined in /in/lXeOd:3 Stack trace: #0 /in/lXeOd(8): na(true) #1 {main} thrown in /in/lXeOd on line 3
Process exited with code 255.
Output for 7.0.28 - 7.2.11
Fatal error: Uncaught TypeError: Argument 1 passed to na() must be an instance of boolean, boolean given, called in /in/lXeOd on line 8 and defined in /in/lXeOd:3 Stack trace: #0 /in/lXeOd(8): na(true) #1 {main} thrown in /in/lXeOd on line 3
Process exited with code 255.
Output for 5.6.38
Catchable fatal error: Argument 1 passed to na() must be an instance of boolean, boolean given, called in /in/lXeOd on line 8 and defined in /in/lXeOd on line 3
Process exited with code 255.