3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1){ test(9, 100); } function test(int $a, string $b) { var_dump($a, $b); }
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.5.24 - 5.5.30, 5.6.8 - 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.

preferences:
161.76 ms | 1395 KiB | 25 Q