3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test(int $x) { var_dump($x); } test("10");
Output for hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0rc3
int(10)
Output for 5.6.30
Catchable fatal error: Argument 1 passed to test() must be an instance of int, string given, called in /in/GLRhc on line 7 and defined in /in/GLRhc on line 3
Process exited with code 255.