3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array('jan', 'feb', 'mar', 'apr', 'may'); array_push ($months, 'june'); $months[] = 'july'; $month = array_shift($months); print_r($months); echo $month;

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)
8.3.60.0100.00716.50
8.3.50.0120.00616.67
8.3.40.0170.00018.67
8.3.30.0080.00618.63
8.3.20.0070.00718.69
8.3.10.0040.01118.55
8.3.00.0080.00019.33
8.2.180.0070.01016.50
8.2.170.0140.00022.96
8.2.160.0080.00819.02
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0040.01120.69
8.2.110.0060.00322.04
8.2.100.0100.00317.78
8.2.90.0070.00317.63
8.2.80.0000.00818.91
8.2.70.0030.00617.50
8.2.60.0000.00718.03
8.2.50.0040.00418.07
8.2.40.0090.00020.07
8.2.30.0040.00417.81
8.2.20.0030.00617.79
8.2.10.0040.00417.71
8.2.00.0050.00317.78
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00320.68
8.1.230.0040.00717.89
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0000.01218.10
8.1.170.0040.00418.89
8.1.160.0040.00418.95
8.1.150.0050.00318.44
8.1.140.0030.00517.34
8.1.130.0050.00317.82
8.1.120.0040.00417.43
8.1.110.0030.00617.41
8.1.100.0070.00017.38
8.1.90.0000.00717.40
8.1.80.0040.00417.34
8.1.70.0030.00317.30
8.1.60.0040.00417.41
8.1.50.0000.00717.42
8.1.40.0050.00317.45
8.1.30.0030.00617.55
8.1.20.0000.00717.57
8.1.10.0030.00617.55
8.1.00.0000.00817.43
8.0.300.0030.00618.77
8.0.290.0000.00716.63
8.0.280.0070.00018.59
8.0.270.0070.00017.24
8.0.260.0030.00316.74
8.0.250.0000.00716.94
8.0.240.0040.00416.94
8.0.230.0030.00316.92
8.0.220.0000.00816.81
8.0.210.0040.00416.84
8.0.200.0040.00316.80
8.0.190.0040.00416.97
8.0.180.0040.00416.89
8.0.170.0060.00316.76
8.0.160.0030.00316.89
8.0.150.0000.00716.86
8.0.140.0040.00316.83
8.0.130.0030.00313.27
8.0.120.0030.00716.77
8.0.110.0030.00516.68
8.0.100.0040.00416.63
8.0.90.0030.00516.72
8.0.80.0070.00716.69
8.0.70.0000.00816.82
8.0.60.0000.00716.59
8.0.50.0040.00416.77
8.0.30.0130.00516.70
8.0.20.0120.00717.05
8.0.10.0040.00416.76
8.0.00.0060.01116.75
7.4.330.0020.00212.89
7.4.320.0060.00016.53
7.4.300.0030.00316.53
7.4.290.0040.00416.53
7.4.280.0060.00316.42
7.4.270.0070.00016.44
7.4.260.0000.00913.16
7.4.250.0030.00616.37
7.4.240.0030.00316.51
7.4.230.0030.00316.40
7.4.220.0070.01416.41
7.4.210.0100.00516.45
7.4.200.0000.00716.54
7.4.190.0030.00316.47
7.4.160.0060.00916.65
7.4.150.0120.00616.63
7.4.140.0070.01016.35
7.4.130.0070.01016.78
7.4.120.0060.01416.67
7.4.110.0120.00616.55
7.4.100.0080.01216.69
7.4.90.0100.00716.55
7.4.80.0120.00919.39
7.4.70.0140.00316.36
7.4.60.0130.00316.34
7.4.50.0040.00816.43
7.4.40.0140.00316.31
7.4.30.0170.00716.59
7.4.00.0030.01314.65
7.3.330.0030.00313.13
7.3.320.0000.00713.00
7.3.310.0000.00716.26
7.3.300.0040.00416.26
7.3.290.0040.01116.23
7.3.280.0040.01016.28
7.3.270.0070.01116.56
7.3.260.0080.01116.43
7.3.250.0100.00716.46
7.3.240.0190.00316.47
7.3.230.0060.01016.62
7.3.210.0160.00316.42
7.3.200.0060.01316.50
7.3.190.0150.00616.51
7.3.180.0090.01216.60
7.3.170.0090.00916.40
7.3.160.0040.01116.19
7.3.120.0030.01015.00
7.3.10.0060.00916.46
7.3.00.0000.01516.70
7.2.330.0070.01016.71
7.2.320.0080.00816.70
7.2.310.0120.01216.44
7.2.300.0030.01516.30
7.2.290.0120.00616.55
7.2.130.0090.00617.08
7.2.120.0080.00816.93
7.2.110.0060.00916.98
7.2.100.0030.01016.69
7.2.90.0090.00616.93
7.2.80.0060.00616.69
7.2.70.0070.00716.93
7.2.60.0040.00716.99
7.2.50.0110.00316.84
7.2.40.0120.00316.95
7.2.30.0070.00716.79
7.2.20.0030.00916.54
7.2.10.0040.00916.70
7.2.00.0060.00618.11
7.1.250.0070.00315.86
7.1.100.0060.00318.32
7.1.70.0080.00317.15
7.1.60.0100.00716.91
7.1.50.0000.02116.87
7.1.00.0070.05322.30
7.0.200.0060.00616.87
7.0.140.0070.07021.95
7.0.120.0100.06722.15
7.0.60.0130.07319.91
7.0.50.0070.04317.86
7.0.40.0030.09320.21
7.0.30.0230.04720.22
7.0.20.0370.06720.23
7.0.10.0070.04020.08
7.0.00.0100.07320.30
5.6.280.0000.07721.04
5.6.210.0100.06720.46
5.6.200.0070.03718.23
5.6.190.0030.04320.50
5.6.180.0100.05020.45
5.6.170.0200.05720.44
5.6.160.0070.03720.54
5.6.150.0130.03018.14
5.6.140.0100.06718.18
5.6.130.0030.04018.15
5.6.120.0070.08721.07
5.6.110.0100.09021.10
5.6.100.0100.08021.00
5.6.90.0170.07321.11
5.6.80.0070.08020.38
5.5.350.0300.08020.40
5.5.340.0100.03718.03
5.5.330.0100.03720.18
5.5.320.0230.06020.34
5.5.310.0400.07020.24
5.5.300.0000.07718.01
5.5.290.0100.07718.01
5.5.280.0070.08020.87
5.5.270.0100.04720.83
5.5.260.0100.07020.75
5.5.250.0100.08320.79
5.5.240.0000.07720.25
5.4.450.0100.07019.22
5.4.440.0170.06319.49
5.4.430.0100.07319.24
5.4.420.0100.04319.39
5.4.410.0070.06319.04
5.4.400.0000.04018.88
5.4.390.0100.03018.97
5.4.380.0030.04019.08
5.4.370.0030.03718.85
5.4.360.0000.04318.85
5.4.350.0070.03319.14
5.4.340.0000.04019.24
5.4.320.0070.03318.87
5.4.310.0100.03018.92
5.4.300.0070.03318.92
5.4.290.0000.04019.00
5.4.280.0070.03319.00
5.4.270.0070.03319.19
5.4.260.0070.03319.15
5.4.250.0100.03019.14
5.4.240.0070.03318.85
5.4.230.0070.03718.96
5.4.220.0030.03719.20
5.4.210.0070.03318.86
5.4.200.0000.04019.20
5.4.190.0030.03719.23
5.4.180.0070.03319.14
5.4.170.0030.04719.23
5.4.160.0070.03319.14
5.4.150.0030.06319.12
5.4.140.0070.05316.39
5.4.130.0100.07016.30
5.4.120.0030.05716.49
5.4.110.0070.06316.49
5.4.100.0000.07316.39
5.4.90.0030.08016.41
5.4.80.0100.06016.39
5.4.70.0130.06316.38
5.4.60.0030.08016.40
5.4.50.0070.07316.27
5.4.40.0070.04716.43
5.4.30.0100.04716.44
5.4.20.0100.05316.27
5.4.10.0030.05316.32
5.4.00.0000.04015.82
5.3.290.0000.04014.66
5.3.280.0030.03714.58
5.3.270.0000.04314.63
5.3.260.0030.05014.48
5.3.250.0000.06314.61
5.3.240.0030.04714.63
5.3.230.0070.06714.61
5.3.220.0000.08314.71
5.3.210.0100.07314.63
5.3.200.0030.07714.61
5.3.190.0070.07014.45
5.3.180.0130.07014.58
5.3.170.0070.07314.56
5.3.160.0100.04714.57
5.3.150.0000.04014.61
5.3.140.0070.05014.55
5.3.130.0030.05714.53
5.3.120.0030.08314.46
5.3.110.0100.04314.43
5.3.100.0100.06314.03
5.3.90.0070.07714.06
5.3.80.0100.04313.93
5.3.70.0030.04013.95
5.3.60.0100.06314.15
5.3.50.0070.03314.09
5.3.40.0070.03313.86
5.3.30.0030.05713.98
5.3.20.0100.05313.70
5.3.10.0070.06313.57
5.3.00.0000.05013.79
5.2.170.0070.06011.14
5.2.160.0070.04711.10
5.2.150.0100.03311.29
5.2.140.0000.07011.11
5.2.130.0000.04311.10
5.2.120.0100.04311.15
5.2.110.0070.06311.10
5.2.100.0000.03711.15
5.2.90.0030.03711.09
5.2.80.0000.04711.06
5.2.70.0070.06011.09
5.2.60.0070.03711.09
5.2.50.0070.03310.93
5.2.40.0030.03310.94
5.2.30.0000.05311.01
5.2.20.0030.03010.84
5.2.10.0000.03010.85
5.2.00.0030.06010.76
5.1.60.0130.0209.96
5.1.50.0100.05010.06
5.1.40.0070.0239.96
5.1.30.0070.03710.32
5.1.20.0070.02310.34
5.1.10.0030.05710.11
5.1.00.0100.04010.13
5.0.50.0030.0278.70
5.0.40.0030.0278.55
5.0.30.0000.0708.55
5.0.20.0000.0338.55
5.0.10.0000.0338.55
5.0.00.0030.0308.55
4.4.90.0000.0208.55
4.4.80.0030.0138.55
4.4.70.0030.0238.55
4.4.60.0030.0178.55
4.4.50.0000.0178.55
4.4.40.0000.0378.55
4.4.30.0030.0208.55
4.4.20.0000.0178.55
4.4.10.0000.0178.55
4.4.00.0000.0308.55
4.3.110.0030.0338.55
4.3.100.0030.0138.55
4.3.90.0000.0408.55
4.3.80.0030.0238.55
4.3.70.0000.0178.55
4.3.60.0000.0178.55
4.3.50.0000.0278.55
4.3.40.0000.0378.55
4.3.30.0000.0178.55
4.3.20.0070.0138.55
4.3.10.0030.0338.55
4.3.00.0030.0138.55

preferences:
44.73 ms | 400 KiB | 5 Q