3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_time = microtime(); array_shift(array_range(1,1000000)); $end_time = microtime(); echo $end_time - $start_time;

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.2.00.0080.00819.32
7.1.70.0100.00317.06
7.1.60.0070.00716.87
7.1.50.0090.01316.82
7.1.00.0070.05722.31
7.0.200.0080.01116.82
7.0.140.0030.07021.93
7.0.70.4530.04019.88
7.0.60.0070.08319.92
7.0.50.0100.08017.66
7.0.40.0070.09020.39
7.0.30.0200.07320.17
7.0.20.0270.06020.00
7.0.10.0230.06320.04
7.0.00.0030.09720.21
5.6.280.0070.07021.06
5.6.210.0170.06020.65
5.6.200.0070.08318.21
5.6.190.0000.09320.41
5.6.180.0170.07020.24
5.6.170.0370.06020.47
5.6.160.0070.04020.48
5.6.150.0070.06718.12
5.6.140.0000.04018.15
5.6.130.0070.08318.12
5.6.120.0070.04321.01
5.6.110.0070.08721.00
5.6.100.0070.08021.02
5.6.90.0030.04020.99
5.6.80.0030.04020.39
5.6.70.0070.07320.37
5.5.350.0030.08020.38
5.5.340.0130.07318.04
5.5.330.0070.05320.20
5.5.320.0100.07720.37
5.5.310.0300.07720.29
5.5.300.0000.04317.91
5.5.290.0070.04017.89
5.5.280.0100.08020.86
5.5.270.0100.05320.88
5.5.260.0130.08020.79
5.5.250.0170.07720.61
5.5.240.0130.07020.25
5.4.450.0830.04319.09
5.4.440.0200.05319.24
5.4.430.0770.07019.63
5.4.420.0630.05719.09
5.4.410.0730.05019.29
5.4.400.0700.05719.16
5.4.390.0730.05319.30
5.4.380.0170.05318.72
5.4.370.0070.03718.62
5.4.360.0100.03318.74
5.4.350.0070.04011.98
5.4.340.0070.03711.97
5.4.320.0080.04612.45
5.4.310.0030.04412.45
5.4.300.0080.04112.46
5.4.290.0060.03812.45
5.4.280.0080.03612.35
5.4.270.0090.03212.35
5.4.260.0040.04412.35
5.4.250.0070.06719.00
5.4.240.0200.06018.83
5.4.230.0100.06019.02
5.4.220.0130.05318.65
5.4.210.0100.07318.89
5.4.200.0170.05018.92
5.4.190.0130.07318.70
5.4.180.0130.07318.86
5.4.170.0030.05718.82
5.4.160.0100.05019.04
5.4.150.0100.05018.88
5.4.140.0100.06016.26
5.4.130.0130.06716.44
5.4.120.0030.06016.52
5.4.110.0030.07016.53
5.4.100.0170.05316.50
5.4.90.0170.06016.35
5.4.80.0100.04716.51
5.4.70.0030.05716.26
5.4.60.0130.05016.36
5.4.50.0130.05716.48
5.4.40.0070.05716.24
5.4.30.0030.06716.20
5.4.20.0070.05316.20
5.4.10.0200.04316.46
5.4.00.0130.06715.90
5.3.290.0050.04012.80
5.3.280.0130.06714.31
5.3.270.0100.06714.47
5.3.260.0130.05314.69
5.3.250.0030.05714.61
5.3.240.0100.05014.59
5.3.230.0200.04314.60
5.3.220.0070.05314.48
5.3.210.0070.05314.45
5.3.200.0170.04714.71
5.3.190.0100.05014.33
5.3.180.0100.05014.33
5.3.170.0230.04714.58
5.3.160.0100.05014.51
5.3.150.0130.07014.57
5.3.140.0070.07014.55
5.3.130.0170.06314.54
5.3.120.0130.05714.24
5.3.110.0070.06014.55
5.3.100.0100.06713.73
5.3.90.0100.05013.78
5.3.80.0070.06014.03
5.3.70.0170.05314.07
5.3.60.0100.06313.91
5.3.50.0100.05013.83
5.3.40.0170.04713.96
5.3.30.0100.06713.77
5.3.20.0130.05013.56
5.3.10.0170.05313.48
5.3.00.0130.05013.63
5.2.170.0000.04711.07
5.2.160.0070.04011.15
5.2.150.0070.04710.97
5.2.140.0070.06010.96
5.2.130.0100.05710.86
5.2.120.0030.04311.00
5.2.110.0070.04011.09
5.2.100.0070.05011.21
5.2.90.0000.05711.02
5.2.80.0130.04711.20
5.2.70.0230.05010.84
5.2.60.0300.04011.14
5.2.50.0100.04310.93
5.2.40.0170.04310.83
5.2.30.0100.05011.06
5.2.20.0100.04011.05
5.2.10.0070.04710.77
5.2.00.0130.05010.54
5.1.60.0130.03310.01
5.1.50.0100.03310.18
5.1.40.0100.0439.82
5.1.30.0170.03710.47
5.1.20.0100.03710.18
5.1.10.0100.04310.00
5.1.00.0070.04310.03
5.0.50.0130.0308.48
5.0.40.0130.0278.55
5.0.30.0070.0538.37
5.0.20.0070.0338.38
5.0.10.0070.0238.00
5.0.00.0000.0438.24
4.4.90.0000.0307.33
4.4.80.0000.0307.33
4.4.70.0000.0277.33
4.4.60.0030.0307.33
4.4.50.0070.0207.33
4.4.40.0070.0407.33
4.4.30.0030.0277.33
4.4.20.0000.0337.33
4.4.10.0030.0337.33
4.4.00.0030.0407.33
4.3.110.0100.0237.33
4.3.100.0030.0277.33
4.3.90.0000.0207.33
4.3.80.0070.0377.33
4.3.70.0070.0177.33
4.3.60.0000.0237.33
4.3.50.0070.0237.33
4.3.40.0030.0377.33
4.3.30.0000.0307.33
4.3.20.0000.0237.33
4.3.10.0000.0307.33
4.3.00.0070.0177.26

preferences:
33.7 ms | 400 KiB | 5 Q