3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = ['jan', 'feb', 'mar', 'april', 'may']; array_push($months, 'jun'); $months[] = 'jul'; $month = array_pop($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.0110.00418.43
8.3.50.0120.00721.88
8.3.40.0060.00918.55
8.3.30.0070.00719.09
8.3.20.0070.00020.30
8.3.10.0040.00423.48
8.3.00.0080.00019.13
8.2.180.0090.00918.35
8.2.170.0060.00922.96
8.2.160.0030.01320.35
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.19
8.2.110.0030.00619.39
8.2.100.0070.00417.63
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0090.00018.05
8.2.50.0030.00618.07
8.2.40.0040.00419.88
8.2.30.0040.00418.07
8.2.20.0050.00317.72
8.2.10.0030.00518.17
8.2.00.0030.00717.60
8.1.280.0120.00925.92
8.1.270.0030.00623.84
8.1.260.0080.00026.35
8.1.250.0040.01128.09
8.1.240.0040.00420.99
8.1.230.0080.00417.42
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0080.00017.11
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0000.00721.85
8.1.150.0040.00418.48
8.1.140.0000.00717.35
8.1.130.0070.00017.83
8.1.120.0030.00317.36
8.1.110.0040.00417.37
8.1.100.0000.00717.34
8.1.90.0040.00417.21
8.1.80.0080.00017.29
8.1.70.0000.00717.29
8.1.60.0030.00617.40
8.1.50.0040.00417.45
8.1.40.0000.00817.39
8.1.30.0030.00517.50
8.1.20.0060.00317.57
8.1.10.0040.00417.43
8.1.00.0060.00317.36
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.49
8.0.270.0000.00717.15
8.0.260.0060.00017.18
8.0.250.0000.00716.94
8.0.240.0030.00316.95
8.0.230.0000.00616.82
8.0.220.0020.00516.73
8.0.210.0030.00316.73
8.0.200.0070.00016.87
8.0.190.0040.00416.87
8.0.180.0030.00316.78
8.0.170.0000.00716.88
8.0.160.0000.00716.81
8.0.150.0000.00816.78
8.0.140.0040.00416.83
8.0.130.0030.00313.27
8.0.120.0080.00016.78
8.0.110.0030.00516.74
8.0.100.0040.00416.68
8.0.90.0040.00416.82
8.0.80.0060.01016.86
8.0.70.0000.00716.82
8.0.60.0040.00416.69
8.0.50.0040.00416.70
8.0.30.0110.00916.88
8.0.20.0040.01217.40
8.0.10.0080.00016.80
8.0.00.0140.00416.71
7.4.330.0000.00515.14
7.4.320.0030.00316.54
7.4.300.0040.00416.55
7.4.290.0000.00716.53
7.4.280.0040.00416.54
7.4.270.0030.00316.45
7.4.260.0030.00516.58
7.4.250.0030.00616.26
7.4.240.0030.00316.37
7.4.230.0030.00316.27
7.4.220.0130.00716.56
7.4.210.0080.00816.47
7.4.200.0080.00016.63
7.4.190.0000.00716.38
7.4.160.0110.00516.39
7.4.150.0120.00617.40
7.4.140.0100.00717.86
7.4.130.0100.01016.48
7.4.120.0080.00816.58
7.4.110.0120.00616.46
7.4.100.0000.02116.50
7.4.90.0080.00816.41
7.4.80.0150.00619.39
7.4.70.0090.00616.64
7.4.60.0090.00616.47
7.4.50.0050.00316.28
7.4.40.0110.00816.55
7.4.30.0080.00816.39
7.4.00.0060.00914.91
7.3.330.0060.00013.09
7.3.320.0020.00213.09
7.3.310.0000.00716.19
7.3.300.0000.00716.24
7.3.290.0080.00616.35
7.3.280.0080.00916.25
7.3.270.0060.01317.40
7.3.260.0120.00616.19
7.3.250.0110.00616.37
7.3.240.0030.01416.51
7.3.230.0070.01016.43
7.3.210.0120.00916.44
7.3.200.0060.01219.39
7.3.190.0090.00816.43
7.3.180.0100.00616.50
7.3.170.0030.01316.48
7.3.160.0060.00916.64
7.3.120.0090.00614.62
7.2.330.0070.01016.50
7.2.320.0030.01916.73
7.2.310.0090.00816.54
7.2.300.0080.00816.36
7.2.290.0170.00016.40
7.2.00.0090.00619.40
7.1.100.0000.01418.18
7.1.70.0050.00317.31
7.1.60.0170.00719.46
7.1.50.0100.00716.96
7.1.00.0030.07722.40
7.0.200.0040.00416.49
7.0.140.0000.07321.97
7.0.60.0100.07719.86
7.0.50.0070.04017.83
7.0.40.0130.07717.80
7.0.30.0070.06017.75
7.0.20.0070.08317.75
7.0.10.0100.07317.75
7.0.00.0100.05317.75
5.6.280.0000.07720.77
5.6.210.0070.07320.62
5.6.200.0130.04318.19
5.6.190.0070.08718.26
5.6.180.0170.05018.19
5.6.170.0100.07718.14
5.6.160.0100.07018.15
5.6.150.0030.06318.13
5.6.140.0070.07318.18
5.6.130.0130.07718.15
5.6.120.0100.04018.18
5.6.110.0030.05718.17
5.6.100.0030.04318.28
5.6.90.0130.03318.23
5.6.80.0130.07017.67
5.6.70.0070.08017.56
5.6.60.0100.06017.52
5.6.50.0030.08017.61
5.6.40.0070.04717.51
5.6.30.0100.07317.54
5.6.20.0100.07717.57
5.6.10.0130.07317.51
5.6.00.0070.06317.61
5.5.350.0330.06320.46
5.5.340.0100.08018.03
5.5.330.0100.06017.91
5.5.320.0100.07718.01
5.5.310.0130.06717.98
5.5.300.0130.03718.07
5.5.290.0070.08317.98
5.5.280.0100.03717.95
5.5.270.0070.05718.00
5.5.260.0030.08718.00
5.5.250.0000.06017.79
5.5.240.0070.04717.30
5.5.230.0030.08317.32
5.5.220.0030.06717.36
5.5.210.0130.07317.33
5.5.200.0100.07317.34
5.5.190.0130.07317.33
5.5.180.0130.07017.34
5.5.160.0100.03717.31
5.5.150.0070.04317.29
5.5.140.0070.07717.43
5.5.130.0130.07017.29
5.5.120.0070.06717.27
5.5.110.0070.07317.29
5.5.100.0030.05017.23
5.5.90.0000.07017.33
5.5.80.0000.06317.31
5.5.70.0070.07317.19
5.5.60.0070.07317.23
5.5.50.0030.07317.21
5.5.40.0070.03717.22
5.5.30.0000.08017.21
5.5.20.0130.06717.21
5.5.10.0030.07317.32
5.5.00.0100.07717.21
5.4.450.0000.04319.45
5.4.440.0070.05319.34
5.4.430.0100.05319.33
5.4.420.0100.03719.41
5.4.410.0300.04019.29
5.4.400.0070.04719.00
5.4.390.0070.07719.00
5.4.380.0130.07019.05
5.4.370.0070.08319.03
5.4.360.0100.04719.04
5.4.350.0130.06019.03
5.4.340.0030.04719.05
5.4.320.0100.07018.96
5.4.310.0030.04719.01
5.4.300.0130.03718.88
5.4.290.0070.06719.01
5.4.280.0130.07719.04
5.4.270.0130.06719.03
5.4.260.0070.04319.03
5.4.250.0030.06019.02
5.4.240.0170.06718.95
5.4.230.0170.07019.07
5.4.220.0070.05718.98
5.4.210.0100.05718.97
5.4.200.0070.04318.88
5.4.190.0100.06319.03
5.4.180.0130.07319.04
5.4.170.0000.04319.12
5.4.160.0130.07019.09
5.4.150.0130.07019.10
5.4.140.0030.07016.30
5.4.130.0130.07016.44
5.4.120.0070.04716.32
5.4.110.0070.04716.35
5.4.100.0000.04716.46
5.4.90.0030.07316.40
5.4.80.0030.05016.39
5.4.70.0070.03316.35
5.4.60.0030.03716.56
5.4.50.0100.03716.39
5.4.40.0070.07016.33
5.4.30.0000.05316.42
5.4.20.0030.05316.52
5.4.10.0070.06316.43
5.4.00.0100.06715.89
5.3.290.0030.04714.63
5.3.280.0070.07714.56
5.3.270.0070.08014.55
5.3.260.0130.07014.38
5.3.250.0070.07714.57
5.3.240.0100.07314.58
5.3.230.0130.06314.68
5.3.220.0070.07014.53
5.3.210.0030.06714.54
5.3.200.0000.04014.35
5.3.190.0070.08314.56
5.3.180.0100.07014.34
5.3.170.0030.04314.53
5.3.160.0000.04014.53
5.3.150.0070.04014.39
5.3.140.0000.04314.48
5.3.130.0070.05714.38
5.3.120.0070.04714.50
5.3.110.0100.05014.38
5.3.100.0030.06313.98
5.3.90.0100.07313.98
5.3.80.0070.07713.96
5.3.70.0070.07013.99
5.3.60.0030.07313.91
5.3.50.0030.08013.95
5.3.40.0030.07713.93
5.3.30.0030.07313.99
5.3.20.0070.07013.47
5.3.10.0070.07313.73
5.3.00.0030.05313.58
5.2.170.0100.04311.05
5.2.160.0070.05011.18
5.2.150.0030.03711.16
5.2.140.0030.06710.98
5.2.130.0070.05311.00
5.2.120.0070.05711.05
5.2.110.0070.05310.92
5.2.100.0030.05711.09
5.2.90.0070.05010.88
5.2.80.0030.03711.07
5.2.70.0000.06310.92
5.2.60.0030.03711.04
5.2.50.0100.05711.01
5.2.40.0070.06011.00
5.2.30.0070.05710.94
5.2.20.0030.05310.94
5.2.10.0130.04010.75
5.2.00.0000.04010.70
5.1.60.0100.0479.98
5.1.50.0030.05310.02
5.1.40.0030.04310.13
5.1.30.0070.03010.28
5.1.20.0000.03710.37
5.1.10.0070.05010.05
5.1.00.0030.06010.05
5.0.50.0030.0478.68
5.0.40.0070.0438.39
5.0.30.0100.0478.22
5.0.20.0030.0438.18
5.0.10.0030.0438.13
5.0.00.0100.0538.14
4.4.90.0030.0207.64
4.4.80.0030.0377.64
4.4.70.0000.0277.64
4.4.60.0070.0337.64
4.4.50.0070.0307.64
4.4.40.0030.0407.64
4.4.30.0000.0407.64
4.4.20.0000.0237.64
4.4.10.0070.0207.64
4.4.00.0030.0577.64
4.3.110.0000.0377.64
4.3.100.0030.0377.64
4.3.90.0000.0307.64
4.3.80.0000.0537.64
4.3.70.0030.0337.64
4.3.60.0000.0307.64
4.3.50.0070.0237.64
4.3.40.0030.0307.64
4.3.30.0030.0277.64
4.3.20.0030.0307.64
4.3.10.0070.0337.64
4.3.00.0030.0307.64

preferences:
50.66 ms | 400 KiB | 5 Q