3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test (ArrayObject $a = 3) { } test();
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.29, 5.6.7 - 5.6.13
Fatal error: Default value for parameters with a class type hint can only be NULL in /in/AqE38 on line 3
Process exited with code 255.

preferences:
188.6 ms | 1387 KiB | 63 Q