3v4l.org

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