3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_flip(false));
Output for 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
Fatal error: Uncaught TypeError: array_flip(): Argument #1 ($array) must be of type array, false given in /in/XnrUq:3 Stack trace: #0 /in/XnrUq(3): array_flip(false) #1 {main} thrown in /in/XnrUq on line 3
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29
Fatal error: Uncaught TypeError: array_flip(): Argument #1 ($array) must be of type array, bool given in /in/XnrUq:3 Stack trace: #0 /in/XnrUq(3): array_flip(false) #1 {main} thrown in /in/XnrUq on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: array_flip() expects parameter 1 to be array, bool given in /in/XnrUq on line 3 NULL
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34
Warning: array_flip() expects parameter 1 to be array, boolean given in /in/XnrUq on line 3 NULL

preferences:
187.92 ms | 410 KiB | 5 Q