3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = 15; $s = 4; $x = 1; while ($x <= $t) { $s.= rand(1,9); }
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.3, 7.2.5 - 7.2.10, 7.2.12 - 7.2.26, 7.3.0, 7.3.2 - 7.3.3, 7.3.5, 7.3.7 - 7.3.11, 7.3.13, 7.4.0 - 7.4.1

Process exited with code 137.
Output for 7.2.4, 7.2.11, 7.3.1, 7.3.4, 7.3.6, 7.3.12
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 31457288 bytes) in /in/PkIoU on line 6
Process exited with code 255.

preferences:
157.35 ms | 402 KiB | 242 Q