3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = 'a'; switch ($t) { case 'value': case 'a': $x = '1' break; case 'a': $x .= '1' break; } echo $x;

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.270.0100.06318.93
5.4.260.0100.06318.80
5.4.250.0070.05718.89
5.4.240.0100.06018.95
5.4.230.0170.07018.76
5.4.220.0170.06718.93
5.4.210.0170.06318.89
5.4.200.0170.06718.89
5.4.190.0000.07018.76
5.4.180.0070.05318.92
5.4.170.0230.06018.95
5.4.160.0130.05018.75
5.4.150.0170.07318.78
5.4.140.0170.06016.46
5.4.130.0030.05316.37
5.4.120.0070.05316.36
5.4.110.0200.05016.35
5.4.100.0300.04016.57
5.4.90.0030.06716.47
5.4.80.0130.06716.54
5.4.70.0100.04716.36
5.4.60.0030.05716.38
5.4.50.0070.05316.46
5.4.40.0130.07016.50
5.4.30.0130.06016.42
5.4.20.0100.06716.39
5.4.10.0100.05016.35
5.4.00.0070.05715.83
5.3.280.0030.06014.61
5.3.270.0070.07714.62
5.3.260.0030.08714.49
5.3.250.0200.06014.61
5.3.240.0170.05014.63
5.3.230.0100.05714.37
5.3.220.0030.06314.41
5.3.210.0100.05314.57
5.3.200.0230.04314.44
5.3.190.0130.06314.41
5.3.180.0100.04714.45
5.3.170.0130.05314.43
5.3.160.0100.05314.26
5.3.150.0070.06314.57
5.3.140.0200.06014.65
5.3.130.0130.04714.64
5.3.120.0070.07314.57
5.3.110.0070.06014.42
5.3.100.0130.04714.05
5.3.90.0070.07014.04
5.3.80.0100.05313.88
5.3.70.0070.05014.04
5.3.60.0170.06314.00
5.3.50.0100.05313.99
5.3.40.0130.06313.87
5.3.30.0100.05313.74
5.3.20.0100.05013.55
5.3.10.0130.05013.53
5.3.00.0100.06313.73
5.2.170.0030.04711.04
5.2.160.0000.04711.29
5.2.150.0100.05311.04
5.2.140.0130.03710.90
5.2.130.0030.05010.86
5.2.120.0170.04311.25
5.2.110.0070.04311.04
5.2.100.0170.04310.86
5.2.90.0000.06011.11
5.2.80.0130.03711.18
5.2.70.0100.05711.09
5.2.60.0030.04311.06
5.2.50.0070.04311.02
5.2.40.0070.05711.00
5.2.30.0070.06010.90
5.2.20.0200.04010.84
5.2.10.0030.04010.89
5.2.00.0030.04010.73
5.1.60.0070.0339.77
5.1.50.0000.04010.06
5.1.40.0170.0379.94
5.1.30.0170.02710.39
5.1.20.0170.04010.57
5.1.10.0070.0409.92
5.1.00.0030.0409.98
5.0.50.0030.0308.60
5.0.40.0130.0278.50
5.0.30.0070.0407.98
5.0.20.0070.0278.28
5.0.10.0100.0238.00
5.0.00.0100.0408.21
4.4.90.0030.0307.19
4.4.80.0100.0207.19
4.4.70.0100.0237.19
4.4.60.0030.0307.19
4.4.50.0030.0307.19
4.4.40.0000.0407.19
4.4.30.0000.0277.19
4.4.20.0030.0207.19
4.4.10.0030.0207.19
4.4.00.0070.0377.19
4.3.110.0070.0207.19
4.3.100.0030.0307.19
4.3.90.0100.0137.19
4.3.80.0070.0437.19
4.3.70.0030.0307.19
4.3.60.0070.0207.19
4.3.50.0030.0237.19
4.3.40.0000.0337.19
4.3.30.0030.0207.19
4.3.20.0100.0237.19
4.3.10.0030.0277.19
4.3.00.0030.0306.71

preferences:
141.79 ms | 1394 KiB | 7 Q