3v4l.org

run code in 300+ PHP versions simultaneously
<?php $loop = function() { echo 'all by myself...', PHP_EOL; sleep(1); self(); }; $loop();

Abusive script

This script was stopped while abusing our resources

Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.3 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
all by myself... Fatal error: Uncaught Error: Call to undefined function self() in /in/U6GdM:6 Stack trace: #0 /in/U6GdM(9): {closure}() #1 {main} thrown in /in/U6GdM on line 6
Process exited with code 255.
Output for 5.4.0 - 5.4.44
all by myself... Fatal error: Call to undefined function self() in /in/U6GdM on line 6
Process exited with code 255.

preferences:
93.34 ms | 1304 KiB | 4 Q