3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (array(1,2,3) as $num){ echo $num }

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.290.2100.03718.83
5.4.280.2070.03718.98
5.4.270.1870.04018.95
5.4.260.1870.03719.21
5.4.250.1700.04019.23
5.4.240.2030.04018.97
5.4.230.1900.03319.05
5.4.220.2200.05019.21
5.4.210.1970.03719.08
5.4.200.1770.03718.85
5.4.190.1870.04019.23
5.4.180.0000.04019.15
5.4.170.0000.04019.08
5.4.160.0230.03719.20
5.4.150.1470.03018.84
5.4.140.1770.03016.36
5.4.130.1730.03316.28
5.4.120.1870.03716.66
5.4.110.1700.03716.45
5.4.100.1470.03716.44
5.4.90.1630.03716.41
5.4.80.1730.02716.24
5.4.70.1630.04316.39
5.4.60.0900.03316.54
5.4.50.0000.04316.51
5.4.40.0000.03716.55
5.4.30.0000.03716.42
5.4.20.1400.04016.50
5.4.10.0070.03316.24
5.4.00.0030.03315.95
5.3.280.1630.04014.44
5.3.270.1670.03014.45
5.3.260.1600.03314.48
5.3.250.1830.03714.44
5.3.240.1900.02714.44
5.3.230.1900.03714.69
5.3.220.1930.03714.41
5.3.210.1930.03314.43
5.3.200.1930.03714.41
5.3.190.2030.03714.55
5.3.180.2400.04714.50
5.3.170.2170.04314.41
5.3.160.2170.03714.54
5.3.150.2200.03714.41
5.3.140.1800.03714.45
5.3.130.2030.05014.53
5.3.120.1830.03714.60
5.3.110.2030.04314.55
5.3.100.1830.03713.87
5.3.90.2170.03713.96
5.3.80.2070.04713.87
5.3.70.2100.03713.97
5.3.60.2000.03013.96
5.3.50.1870.03313.79
5.3.40.2100.04713.82
5.3.30.2000.04013.69
5.3.20.1930.04013.73
5.3.10.2070.04713.50
5.3.00.2070.03313.52
5.2.170.1770.03310.98
5.2.160.1770.03311.20
5.2.150.1770.03311.19
5.2.140.1700.03311.16
5.2.130.1530.02710.95
5.2.120.1630.03311.26
5.2.110.0000.06711.11
5.2.100.0030.06711.04
5.2.90.0070.05011.26
5.2.80.0070.03711.03
5.2.70.1230.03310.93
5.2.60.1530.03010.89
5.2.50.1800.03711.04
5.2.40.1430.03710.83
5.2.30.1230.02710.83
5.2.20.1270.02311.00
5.2.10.1230.02710.78
5.2.00.1430.03310.88
5.1.60.1470.0279.98
5.1.50.1430.02710.04
5.1.40.1230.02310.14
5.1.30.1000.03010.34
5.1.20.1400.03010.25
5.1.10.1470.0279.96
5.1.00.1200.0279.95
5.0.50.0700.0238.44
5.0.40.0870.0278.32
5.0.30.0670.0338.27
5.0.20.0600.0208.10
5.0.10.0730.0238.32
5.0.00.0870.0338.38
4.4.90.0730.0207.87
4.4.80.0670.0137.87
4.4.70.0630.0177.87
4.4.60.0830.0237.87
4.4.50.0830.0207.87
4.4.40.0670.0237.87
4.4.30.0570.0207.87
4.4.20.0630.0137.87
4.4.10.0670.0137.87
4.4.00.0700.0307.87
4.3.110.0630.0177.87
4.3.100.0630.0177.87
4.3.90.0700.0177.87
4.3.80.0600.0277.87
4.3.70.0600.0177.87
4.3.60.0800.0237.87
4.3.50.0630.0137.87
4.3.40.0630.0237.87
4.3.30.0370.0207.87
4.3.20.0330.0207.87
4.3.10.0300.0207.87
4.3.00.0430.0137.87

preferences:
141.04 ms | 1394 KiB | 7 Q