3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2); echo ($a)? 'pass' : 'fail'; echo serialize('status'=>'failed');

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.320.1970.03719.17
5.4.310.1870.03719.20
5.4.300.0100.03319.05
5.4.290.0000.04019.21
5.4.280.0030.03719.22
5.4.270.0870.03718.95
5.4.260.2300.03319.13
5.4.250.1830.04019.16
5.4.240.2000.03719.21
5.4.230.2100.03318.86
5.4.220.2000.03719.05
5.4.210.2030.04319.09
5.4.200.1770.04018.86
5.4.190.2100.04319.21
5.4.180.1830.03318.98
5.4.170.1670.04019.07
5.4.160.0100.06719.29
5.4.150.0070.04719.20
5.4.140.1070.06716.39
5.4.130.1770.03316.35
5.4.120.2100.03716.39
5.4.110.2000.03716.41
5.4.100.2000.03016.25
5.4.90.2200.04016.28
5.4.80.1970.04316.59
5.4.70.2070.04016.18
5.4.60.1930.04016.54
5.4.50.1700.04016.48
5.4.40.1530.03316.43
5.4.30.0030.04016.33
5.4.20.0070.04016.21
5.4.10.1100.05716.51
5.4.00.1830.02715.78
5.3.290.2030.03714.68
5.3.280.1900.04014.43
5.3.270.1970.04314.47
5.3.260.1700.04014.51
5.3.250.1930.04714.44
5.3.240.1670.03714.59
5.3.230.1700.03714.62
5.3.220.2030.04314.59
5.3.210.1830.04314.52
5.3.200.1970.04014.52
5.3.190.1930.03014.58
5.3.180.1970.04014.43
5.3.170.1930.04314.61
5.3.160.1930.04714.41
5.3.150.1930.04014.52
5.3.140.1900.04714.54
5.3.130.1730.03714.56
5.3.120.1900.05014.64
5.3.110.1900.04014.53
5.3.100.1970.03313.91
5.3.90.2100.04013.96
5.3.80.1900.03713.86
5.3.70.1830.03713.96
5.3.60.0900.05013.78
5.3.50.0100.05313.93
5.3.40.0030.06013.89
5.3.30.0000.08713.95
5.3.20.1970.03013.52
5.3.10.2000.03313.50
5.3.00.1970.03313.44
5.2.170.1570.03011.05
5.2.160.1770.03711.16
5.2.150.1230.03011.05
5.2.140.0070.03011.00
5.2.130.0000.03011.16
5.2.120.0230.06311.04
5.2.110.1470.03711.11
5.2.100.1430.03010.95
5.2.90.1470.02711.11
5.2.80.1870.03711.17
5.2.70.1470.03011.00
5.2.60.1770.03710.90
5.2.50.1570.03011.02
5.2.40.1200.02710.85
5.2.30.1200.03310.81
5.2.20.1270.03311.04
5.2.10.1230.02711.02
5.2.00.1200.03010.73
5.1.60.1330.0309.97
5.1.50.1170.0279.86
5.1.40.1400.03310.09
5.1.30.1400.03310.25
5.1.20.1270.02710.26
5.1.10.1400.03310.14
5.1.00.1200.03010.05
5.0.50.0500.0238.63
5.0.40.0670.0278.27
5.0.30.0770.0438.20
5.0.20.0770.0308.18
5.0.10.0670.0208.18
5.0.00.0730.0408.18
4.4.90.0730.0238.18
4.4.80.0700.0338.18
4.4.70.0730.0278.18
4.4.60.0730.0178.18
4.4.50.0470.0208.18
4.4.40.0800.0338.18
4.4.30.0630.0208.18
4.4.20.0770.0238.18
4.4.10.0800.0208.18
4.4.00.0630.0208.18
4.3.110.0770.0238.18
4.3.100.0500.0208.18
4.3.90.0030.0338.18
4.3.80.0030.0538.18
4.3.70.0000.0238.18
4.3.60.0000.0178.18
4.3.50.0000.0238.18
4.3.40.0000.0308.18
4.3.30.0000.0378.18
4.3.20.0000.0308.18
4.3.10.0000.0208.18
4.3.00.0170.0208.18

preferences:
142.09 ms | 1386 KiB | 7 Q