3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(\array $array) {} foo([]); //TypeError: foo(): Argument #1 ($array) must be of type array, array given, function goo(\callable $callable) {} goo(strlen(...)); //TypeError: foo(): Argument #1 ($array) must be of type callable, array Colsure, function hoo(\int $int) {} hoo(1); //Type declaration 'int' must be unqualifid
Output for 8.2.0 - 8.2.28, 8.3.0 - 8.3.22, 8.4.1 - 8.4.8
Fatal error: Type declaration 'int' must be unqualified in /in/YRE3Q on line 11
Process exited with code 255.

preferences:
53.86 ms | 724 KiB | 3 Q