3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( 'aaaa'); $eval = collect([ ]);
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
string(4) "aaaa" Fatal error: Uncaught Error: Call to undefined function collect() in /in/sKc80:4 Stack trace: #0 {main} thrown in /in/sKc80 on line 4
Process exited with code 255.

preferences:
104.44 ms | 402 KiB | 85 Q