3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [0]; foreach ($array as &$value) { print $value.PHP_EOL; $array[] = $value + 1; }

Abusive script

This script was stopped while abusing our resources

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.120.0120.00824.59
8.4.110.0220.01319.09
8.4.100.0110.00819.73
8.4.90.0210.01522.29
8.4.80.0250.01219.28
8.4.70.0100.00819.35
8.3.240.0240.00918.22
8.3.230.0160.01717.10
8.3.220.0110.00517.39
8.3.180.0210.01016.73
8.3.50.0110.00517.22
8.2.290.0220.01521.25

preferences:
50.74 ms | 1037 KiB | 5 Q