3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v="red,yellow"; switch($v){ case "blue" : echo "your color is blue"; break; case "green": echo "your color is green"; break; case "yellow" echo "your ccolor is yellow"; break; default: echo "you have no color";

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.3630.04019.22
5.4.310.3900.03719.11
5.4.300.3800.03319.06
5.4.290.3970.04018.95
5.4.280.3700.04018.96
5.4.270.4130.03719.17
5.4.260.4270.03719.20
5.4.250.3970.04018.94
5.4.240.3930.03319.21
5.4.230.4200.02719.10
5.4.220.3870.03719.14
5.4.210.3570.03318.96
5.4.200.4100.03718.93
5.4.190.3730.03719.16
5.4.180.4100.03319.22
5.4.170.3930.03319.03
5.4.160.4130.03019.05
5.4.150.3970.04018.97
5.4.140.4500.03016.42
5.4.130.4270.03016.52
5.4.120.4030.02716.49
5.4.110.4100.03316.48
5.4.100.4070.04016.64
5.4.90.3370.03716.48
5.4.80.4030.03716.29
5.4.70.2470.03716.54
5.4.60.1970.03316.50
5.4.50.3200.03316.44
5.4.40.3030.04316.32
5.4.30.3070.03716.37
5.4.20.3700.04016.45
5.4.10.3470.03316.50
5.4.00.2670.03315.93
5.3.290.4000.02314.45
5.3.280.4000.03314.41
5.3.270.3770.04314.56
5.3.260.3730.03314.62
5.3.250.3900.03714.55
5.3.240.4130.03314.62
5.3.230.4100.03714.54
5.3.220.3770.04014.36
5.3.210.4170.04014.51
5.3.200.4230.02714.39
5.3.190.4500.03714.58
5.3.180.3800.04314.48
5.3.170.3900.03714.50
5.3.160.2700.03714.50
5.3.150.3070.04014.46
5.3.140.3170.03314.53
5.3.130.3270.03714.64
5.3.120.3300.03014.49
5.3.110.2600.04314.52
5.3.100.2570.03713.86
5.3.90.3000.04013.95
5.3.80.3370.03713.96
5.3.70.2500.03713.96
5.3.60.2830.03313.93
5.3.50.3870.03013.88
5.3.40.3930.03713.91
5.3.30.3900.03313.92
5.3.20.4070.04013.64
5.3.10.3930.03713.59
5.3.00.3900.03713.46
5.2.170.3430.03311.11
5.2.160.3170.03011.15
5.2.150.3130.03011.12
5.2.140.3400.03011.04
5.2.130.2830.02711.05
5.2.120.3300.02711.04
5.2.110.3300.03011.02
5.2.100.3300.02710.95
5.2.90.3470.02711.18
5.2.80.3370.02310.95
5.2.70.3430.02711.03
5.2.60.3430.02711.03
5.2.50.3430.02311.09
5.2.40.2730.03011.00
5.2.30.2570.03310.90
5.2.20.2800.03011.04
5.2.10.2870.02710.87
5.2.00.2730.03010.62
5.1.60.2770.0209.89
5.1.50.2230.0279.97
5.1.40.2470.0279.82
5.1.30.2770.02710.31
5.1.20.2670.02710.27
5.1.10.2770.0239.96
5.1.00.2800.02010.08
5.0.50.1470.0338.59
5.0.40.0000.0238.56
5.0.30.0030.0408.12
5.0.20.0000.0378.36
5.0.10.0070.0308.14
5.0.00.0070.0608.06
4.4.90.1230.0175.80
4.4.80.1430.0105.79
4.4.70.1370.0205.82
4.4.60.1270.0135.81
4.4.50.1530.0175.82
4.4.40.1530.0275.82
4.4.30.1430.0175.89
4.4.20.1600.0175.84
4.4.10.1570.0135.90
4.4.00.0000.0575.84
4.3.110.0000.0375.82
4.3.100.0000.0205.69
4.3.90.0030.0335.80
4.3.80.0030.0275.80
4.3.70.1030.0135.76
4.3.60.1770.0175.74
4.3.50.1530.0135.68
4.3.40.1830.0275.69
4.3.30.0930.0234.50
4.3.20.0970.0234.49
4.3.10.0870.0204.49
4.3.00.0830.0174.49

preferences:
139.11 ms | 1398 KiB | 7 Q