3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo(string $s) { echo $s; } foo(10);
based on EMp3h
Output for hhvm-3.15.4, 7.0.0 - 7.3.0rc3
10
Output for 5.6.0 - 5.6.30
Catchable fatal error: Argument 1 passed to foo() must be an instance of string, integer given, called in /in/KHZ2C on line 7 and defined in /in/KHZ2C on line 3
Process exited with code 255.