3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo(string $test) { var_dump($test); } foo(0);
Output for 7.0.0 - 7.3.0alpha1
string(1) "0"
Output for 5.6.0 - 5.6.28
Catchable fatal error: Argument 1 passed to foo() must be an instance of string, integer given, called in /in/iHbFW on line 6 and defined in /in/iHbFW on line 3
Process exited with code 255.