3v4l.org

run code in 300+ PHP versions simultaneously
<?php $status = ['<span style="color: #B49012">pending</span>','<span style="color: #0D852F">success</span>','<span style="color: #D60401">cancelled</span>','<span style="color: #ef7502">error</span>']; $test = $status[array_rand($status)];

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)
7.4.00.0070.01114.91
7.3.120.0040.01414.74
7.3.110.0000.01514.94
7.3.100.0100.00314.71
7.3.90.0030.01014.42
7.3.80.0070.00714.84
7.3.70.0030.01314.55
7.3.60.0070.01014.47
7.3.50.0060.00614.61
7.3.40.0110.00414.42
7.3.30.0040.01414.67
7.3.20.0090.00616.66
7.3.10.0060.00616.54
7.3.00.0090.00516.59
7.2.250.0090.00914.96
7.2.240.0110.00714.89
7.2.230.0040.01114.60
7.2.220.0030.00614.93
7.2.210.0000.01314.93
7.2.200.0040.01114.70
7.2.190.0180.00015.13
7.2.180.0040.00814.66
7.2.170.0040.00715.00
7.2.130.0080.00516.79
7.2.120.0100.00516.80
7.2.110.0050.00616.80
7.2.100.0050.00716.72
7.2.90.0070.00616.72
7.2.80.0050.00616.79
7.2.70.0040.01116.63
7.2.60.0080.00616.84
7.2.50.0050.00816.87
7.2.40.0070.00716.94
7.2.30.0080.00716.63
7.2.20.0050.01016.74
7.2.10.0060.00616.71
7.2.00.0040.01017.54
7.1.330.0030.00915.80
7.1.320.0030.00915.88
7.1.310.0000.01415.90
7.1.300.0070.00715.89
7.1.290.0090.00615.71
7.1.280.0100.00315.57
7.1.270.0060.00315.60
7.1.260.0030.01315.85
7.1.250.0040.00515.75
7.1.100.0060.00617.96
7.1.70.0040.01517.09
7.1.60.0000.02319.34
7.1.50.0050.00516.64
7.1.00.0030.07022.27
7.0.200.0000.00916.75
7.0.140.0000.05722.21
7.0.60.0000.08719.97
7.0.50.0070.05717.88
7.0.40.0070.05320.05
7.0.30.0300.07020.00
7.0.20.0270.08320.16
7.0.10.0300.07320.32
7.0.00.0070.04320.00
5.6.280.0070.07021.12
5.6.210.0030.04020.64
5.6.200.0030.05718.11
5.6.190.0070.08720.37
5.6.180.0000.04320.43
5.6.170.0270.08020.33
5.6.160.0100.08020.41
5.6.150.0070.04718.16
5.6.140.0030.06018.16
5.6.130.0000.04718.15
5.6.120.0070.04021.01
5.6.110.0130.07021.08
5.6.100.0130.07721.08
5.6.90.0200.07320.93
5.6.80.0030.04320.37
5.6.70.4400.04720.39
5.5.350.0000.08720.46
5.5.340.0100.04317.89
5.5.330.0100.03720.25
5.5.320.0270.04320.29
5.5.310.0230.03720.21
5.5.300.0100.04017.87
5.5.290.0070.07717.96
5.5.280.0030.08720.79
5.5.270.0070.03720.72
5.5.260.0100.08720.86
5.5.250.0130.07320.68
5.5.240.0130.04320.23
5.4.450.0470.05319.46
5.4.440.0100.05719.31
5.4.430.0100.05719.52
5.4.420.0100.05719.27
5.4.410.0170.07019.02
5.4.400.0270.03718.85
5.4.390.0130.05019.09
5.4.380.0100.06318.68
5.4.370.0100.06018.77
5.4.360.0230.07018.70
5.4.350.0070.04313.69
5.4.340.0130.04013.65
5.4.320.0070.04314.26
5.4.310.0070.04014.20
5.4.300.0070.04714.21
5.4.290.0070.04014.20
5.4.280.0070.03714.10
5.4.270.0030.04014.05
5.4.260.0070.03714.03
5.4.250.0030.04314.06
5.4.240.0070.03714.25
5.4.230.0030.04014.16
5.4.220.0030.04014.20
5.4.210.0030.04314.17
5.4.200.0100.04314.03
5.4.190.0070.03714.25
5.4.180.0070.04314.24
5.4.170.0000.04314.09
5.4.160.0030.05714.07
5.4.150.0030.04014.09
5.4.140.0130.03313.73
5.4.130.0100.03713.68
5.4.120.0070.04013.64
5.4.110.0030.04313.64
5.4.100.0030.05013.64
5.4.90.0030.04013.70
5.4.80.0100.05013.71
5.4.70.0130.04313.68
5.4.60.0070.04013.65
5.4.50.0070.04013.68
5.4.40.0100.03313.78
5.4.30.0000.05013.63
5.4.20.0130.04013.62
5.4.10.0070.04313.64
5.4.00.0070.05013.35
5.3.290.0100.04314.70
5.3.280.0130.04314.53
5.3.270.0170.04714.51
5.3.260.0070.05314.61
5.3.250.0030.04314.62
5.3.240.0130.04014.67
5.3.230.0200.03314.55
5.3.220.0030.04314.61
5.3.210.0130.04314.63
5.3.200.0100.03314.42
5.3.190.0100.03314.54
5.3.180.0170.03014.48
5.3.170.0130.03014.43
5.3.160.0030.04314.47
5.3.150.0100.03314.59
5.3.140.0030.04314.57
5.3.130.0100.03714.46
5.3.120.0030.04314.58
5.3.110.0070.04014.39
5.3.100.0070.03714.06
5.3.90.0030.04014.02
5.3.80.0030.04313.94
5.3.70.0000.04313.87
5.3.60.0070.03713.93
5.3.50.0100.03713.79
5.3.40.0030.04013.92
5.3.30.0030.03713.80
5.3.20.0070.03713.62
5.3.10.0070.03713.67
5.3.00.0100.04713.55
5.2.170.0030.03311.12
5.2.160.0000.03311.06
5.2.150.0030.03311.12
5.2.140.0070.03311.11
5.2.130.0070.03711.02
5.2.120.0100.03010.95
5.2.110.0070.03010.95
5.2.100.0100.02711.00
5.2.90.0100.03311.03
5.2.80.0070.04311.18
5.2.70.0030.03310.96
5.2.60.0100.04010.95
5.2.50.0070.04011.00
5.2.40.0130.03010.96
5.2.30.0030.03710.87
5.2.20.0070.03010.86
5.2.10.0070.03010.84
5.2.00.0070.03010.65
5.1.60.0000.0309.91
5.1.50.0030.0309.98
5.1.40.0000.0339.93
5.1.30.0100.03310.28
5.1.20.0100.02310.46
5.1.10.0030.02710.07
5.1.00.0030.04010.14
5.0.50.0100.0238.50
5.0.40.0070.0208.47
5.0.30.0030.0378.13
5.0.20.0070.0178.25
5.0.10.0030.0308.20
5.0.00.0030.0408.11
4.4.90.0070.0205.80
4.4.80.0030.0205.84
4.4.70.0070.0135.83
4.4.60.0130.0075.81
4.4.50.0030.0205.77
4.4.40.0070.0235.82
4.4.30.0030.0205.86
4.4.20.0030.0235.88
4.4.10.0100.0205.93
4.4.00.0100.0305.83
4.3.110.0000.0205.81
4.3.100.0000.0205.73
4.3.90.0000.0235.79
4.3.80.0000.0335.79
4.3.70.0030.0175.71
4.3.60.0000.0235.70
4.3.50.0000.0205.85
4.3.40.0070.0305.80
4.3.30.0030.0134.55
4.3.20.0000.0174.60
4.3.10.0030.0174.46
4.3.00.0170.0177.21

preferences:
38.19 ms | 400 KiB | 5 Q