3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //declare(strict_types=1); function test(int $a, string $b) { var_dump($a, $b); } test(9, 100);
based on 7nOXl
Output for 7.0.0 - 7.2.0
int(9) string(3) "100"
Output for 5.3.20 - 5.6.28
Catchable fatal error: Argument 1 passed to test() must be an instance of int, integer given, called in /in/KnpEB on line 10 and defined in /in/KnpEB on line 5
Process exited with code 255.