3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test(int $number) { echo $number; } test(3.4);
Output for 7.0.0 - 7.3.0rc3
3
Output for hhvm-3.12.14 - 3.17.3

Process exited with code 137.
Output for 5.6.0 - 5.6.30
Catchable fatal error: Argument 1 passed to test() must be an instance of int, double given, called in /in/cYHeb on line 7 and defined in /in/cYHeb on line 3
Process exited with code 255.