3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1){ test(9, 100); } function test(int $a, string $b) { var_dump($a, $b); }
based on l3BX6
Output for 7.0.0 - 7.0.1
Fatal error: strict_types declaration must not use block mode in /in/Wepks on line 4
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Warning: Unsupported declare 'strict_types' in /in/Wepks on line 4 Catchable fatal error: Argument 1 passed to test() must be an instance of int, integer given, called in /in/Wepks on line 8 and defined in /in/Wepks on line 13
Process exited with code 255.