3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function sumOfInts(int $a) { return $a + 10; } var_dump(sumOfInts(1));
Output for 7.0.0 - 7.2.0
int(11)
Output for 5.3.21 - 5.6.28
Catchable fatal error: Argument 1 passed to sumOfInts() must be an instance of int, integer given, called in /in/t7A8K on line 8 and defined in /in/t7A8K on line 3
Process exited with code 255.