3v4l.org

run code in 300+ PHP versions simultaneously
<?php array_map(1, array(1));
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught TypeError: array_map(): Argument #1 ($callback) must be a valid callback or null, no array or string given in /in/dlYL1:2 Stack trace: #0 /in/dlYL1(2): array_map(1, Array) #1 {main} thrown in /in/dlYL1 on line 2
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Fatal error: Uncaught TypeError: array_map(): Argument #1 ($callback) must be a valid callback, no array or string given in /in/dlYL1:2 Stack trace: #0 /in/dlYL1(2): array_map(1, Array) #1 {main} thrown in /in/dlYL1 on line 2
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /in/dlYL1 on line 2

preferences:
170.11 ms | 403 KiB | 193 Q