3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test(array $test) { var_dump($test); } test(1);
based on 8YPXk
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught TypeError: Argument 1 passed to test() must be of the type array, integer given, called in /in/RKj5O on line 7 and defined in /in/RKj5O:3 Stack trace: #0 /in/RKj5O(7): test(1) #1 {main} thrown in /in/RKj5O on line 3
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Catchable fatal error: Argument 1 passed to test() must be of the type array, integer given, called in /in/RKj5O on line 7 and defined in /in/RKj5O on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Catchable fatal error: Argument 1 passed to test() must be an array, integer given, called in /in/RKj5O on line 7 and defined in /in/RKj5O on line 3
Process exited with code 255.