3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['dog', 'cat', 'zebra', 'elephant', 'lion', 'tiger', 'squirrel', 'leopard', 'giraff']; foreach ($a as $animal) { echo $animal . "\r\n; } ?>

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)
5.4.350.0030.05319.09
5.4.340.0070.07318.77
5.4.320.0000.08319.16
5.4.310.0030.05018.79
5.4.300.0100.04019.08
5.4.290.0000.07719.21
5.4.280.0070.07318.90
5.4.270.0000.05018.79
5.4.260.0000.06019.21
5.4.250.0070.06718.91
5.4.240.0070.03719.13
5.4.230.0070.03319.05
5.4.220.0000.07319.24
5.4.210.0030.07019.24
5.4.200.0030.06019.08
5.4.190.0030.08019.20
5.4.180.0000.07319.21
5.4.170.0000.07319.08
5.4.160.0200.02719.07
5.4.150.0100.07319.14
5.4.140.0070.07016.37
5.4.130.0000.05316.54
5.4.120.0000.05316.34
5.4.110.0030.07316.39
5.4.100.0000.07316.39
5.4.90.0170.05716.45
5.4.80.0000.07016.41
5.4.70.0070.06716.40
5.4.60.0070.03316.17
5.4.50.0030.07016.36
5.4.40.0130.06016.39
5.4.30.0000.07716.41
5.4.20.0030.05316.36
5.4.10.0030.07316.37
5.4.00.0030.06315.73
5.3.290.0100.07314.72
5.3.280.0070.06014.45
5.3.270.0070.07714.44
5.3.260.0030.08014.48
5.3.250.0030.06314.58
5.3.240.0070.07714.65
5.3.230.0030.07314.47
5.3.220.0030.04314.66
5.3.210.0000.05314.60
5.3.200.0000.08014.61
5.3.190.0070.07014.60
5.3.180.0070.06014.42
5.3.170.0000.07714.44
5.3.160.0030.04714.41
5.3.150.0030.07314.40
5.3.140.0000.06314.39
5.3.130.0070.07314.42
5.3.120.0000.07314.50
5.3.110.0000.06014.50
5.3.100.0000.06714.07
5.3.90.0030.06313.89
5.3.80.0000.05313.89
5.3.70.0070.07314.00
5.3.60.0000.04313.89
5.3.50.0070.04013.92
5.3.40.0130.06713.89
5.3.30.0030.04313.89
5.3.20.0000.07313.89
5.3.10.0000.06713.89
5.3.00.0030.06313.89
5.2.170.0030.06313.89
5.2.160.0030.03713.89
5.2.150.0000.04013.89
5.2.140.0000.03313.89
5.2.130.0030.04313.89
5.2.120.0000.06713.89
5.2.110.0100.05313.89
5.2.100.0030.05713.89
5.2.90.0030.03713.89
5.2.80.0030.03013.89
5.2.70.0030.06313.89
5.2.60.0070.05013.89
5.2.50.0000.06713.89
5.2.40.0000.06313.89
5.2.30.0030.04313.89
5.2.20.0000.05013.89
5.2.10.0030.06013.89
5.2.00.0030.03713.89
5.1.60.0030.05313.89
5.1.50.0000.05713.89
5.1.40.0000.05013.89
5.1.30.0000.06013.89
5.1.20.0030.05713.89
5.1.10.0070.04713.89
5.1.00.0070.05313.89
5.0.50.0030.04013.89
5.0.40.0030.03013.89
5.0.30.0000.05313.89
5.0.20.0070.04013.89
5.0.10.0000.04713.89
5.0.00.0070.06013.89
4.4.90.0000.03713.89
4.4.80.0030.02313.89
4.4.70.0030.03013.89
4.4.60.0000.03313.89
4.4.50.0030.02313.89
4.4.40.0070.02313.89
4.4.30.0000.03713.89
4.4.20.0000.02713.89
4.4.10.0000.03713.89
4.4.00.0000.05713.89
4.3.110.0030.02013.89
4.3.100.0000.02313.89
4.3.90.0000.02713.89
4.3.80.0000.03313.89
4.3.70.0000.03313.89
4.3.60.0030.03313.89
4.3.50.0000.03713.89
4.3.40.0000.05013.89
4.3.30.0000.03313.89
4.3.20.0000.03013.89
4.3.10.0100.01713.89
4.3.00.0000.02013.89

preferences:
138.45 ms | 1394 KiB | 7 Q