3v4l.org

run code in 300+ PHP versions simultaneously
<?php function aaa(array $a) { var_dump($a); } aaa(false);
Output for 8.3.0 - 8.3.4
Fatal error: Uncaught TypeError: aaa(): Argument #1 ($a) must be of type array, false given, called in /in/FvCvf on line 7 and defined in /in/FvCvf:3 Stack trace: #0 /in/FvCvf(7): aaa(false) #1 {main} thrown in /in/FvCvf on line 3
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17
Fatal error: Uncaught TypeError: aaa(): Argument #1 ($a) must be of type array, bool given, called in /in/FvCvf on line 7 and defined in /in/FvCvf:3 Stack trace: #0 /in/FvCvf(7): aaa(false) #1 {main} thrown in /in/FvCvf on line 3
Process exited with code 255.
Output for 7.3.16 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught TypeError: Argument 1 passed to aaa() must be of the type array, bool given, called in /in/FvCvf on line 7 and defined in /in/FvCvf:3 Stack trace: #0 /in/FvCvf(7): aaa(false) #1 {main} thrown in /in/FvCvf on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33
Fatal error: Uncaught TypeError: Argument 1 passed to aaa() must be of the type array, boolean given, called in /in/FvCvf on line 7 and defined in /in/FvCvf:3 Stack trace: #0 /in/FvCvf(7): aaa(false) #1 {main} thrown in /in/FvCvf on line 3
Process exited with code 255.

preferences:
155.81 ms | 402 KiB | 169 Q