3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 1, 2, 3, 4, nosuchfunction(), 6, 7 ];
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.30, 7.4.0 - 7.4.23, 8.0.0 - 8.0.11, 8.1rc1 - rc2
Fatal error: Uncaught Error: Call to undefined function nosuchfunction() in /in/BXO8q:8 Stack trace: #0 {main} thrown in /in/BXO8q on line 8
Process exited with code 255.

preferences:
64.9 ms | 459 KiB | 5 Q