3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array('jan','feb', 'march', 'may', 'april'); // echo $months[3]; print_r ($months); array_push($months, 'july'); print_r($months); $months[]='december'; print_r($months); ?>

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.0060.01216.63
8.3.50.0090.00722.01
8.3.40.0150.00318.80
8.3.30.0140.00419.02
8.3.20.0020.00520.41
8.3.10.0040.00421.85
8.3.00.0080.00022.45
8.2.180.0060.01618.32
8.2.170.0060.00922.96
8.2.160.0070.00722.20
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0090.00022.21
8.2.100.0060.00617.85
8.2.90.0080.00018.22
8.2.80.0000.00817.97
8.2.70.0080.00017.89
8.2.60.0060.00317.93
8.2.50.0060.00318.10
8.2.40.0030.00621.07
8.2.30.0000.00718.02
8.2.20.0040.00417.68
8.2.10.0040.00417.99
8.2.00.0060.00317.87
8.1.280.0100.01025.92
8.1.270.0050.00320.43
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00423.96
8.1.230.0090.00322.66
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.10
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0000.00818.47
8.1.160.0070.00021.93
8.1.150.0040.00418.79
8.1.140.0070.00417.39
8.1.130.0070.00017.60
8.1.120.0050.00217.45
8.1.110.0040.00417.27
8.1.100.0000.00717.26
8.1.90.0000.00717.29
8.1.80.0040.00417.42
8.1.70.0040.00417.29
8.1.60.0000.00817.48
8.1.50.0050.00317.49
8.1.40.0000.00817.39
8.1.30.0040.00417.54
8.1.20.0050.00217.55
8.1.10.0050.00217.50
8.1.00.0130.00017.34
8.0.300.0060.00322.05
8.0.290.0080.00016.63
8.0.280.0040.00418.32
8.0.270.0000.00717.16
8.0.260.0000.00617.20
8.0.250.0000.00716.79
8.0.240.0030.00316.76
8.0.230.0040.00416.85
8.0.220.0070.00016.89
8.0.210.0050.00316.87
8.0.200.0060.00316.82
8.0.190.0080.00016.91
8.0.180.0040.00416.89
8.0.170.0000.00816.76
8.0.160.0000.00716.80
8.0.150.0030.00416.82
8.0.140.0060.00316.75
8.0.130.0030.00313.21
8.0.120.0000.00816.78
8.0.110.0040.00416.66
8.0.100.0030.00516.62
8.0.90.0040.00416.73
8.0.80.0060.00916.79
8.0.70.0030.00616.82
8.0.60.0000.00716.69
8.0.50.0040.00416.84
8.0.30.0080.00916.99
8.0.20.0140.00517.40
8.0.10.0000.00717.01
8.0.00.0090.00816.70
7.4.330.0060.00015.09
7.4.320.0060.00016.43
7.4.300.0030.00316.43
7.4.290.0000.00716.52
7.4.280.0000.00916.41
7.4.270.0030.00316.55
7.4.260.0100.00016.45
7.4.250.0040.00416.39
7.4.240.0040.00316.39
7.4.230.0030.00316.52
7.4.220.0160.00416.63
7.4.210.0060.01016.54
7.4.200.0070.00016.34
7.4.160.0120.00316.51
7.4.150.0090.00917.40
7.4.140.0050.01517.86
7.4.130.0090.01116.40
7.4.120.0050.01116.29
7.4.110.0120.00616.33
7.4.100.0150.00316.20
7.4.90.0110.00816.43
7.4.80.0100.01319.39
7.4.70.0060.01316.54
7.4.60.0060.00916.48
7.4.50.0030.00616.61
7.4.40.0130.01016.57
7.4.30.0090.00916.40
7.4.00.0070.01115.01
7.3.330.0050.00013.14
7.3.320.0040.00412.96
7.3.310.0000.00716.17
7.3.300.0030.00316.26
7.3.290.0100.00416.21
7.3.280.0120.00516.20
7.3.270.0120.00617.40
7.3.260.0100.00716.22
7.3.250.0120.00616.30
7.3.240.0100.00716.60
7.3.230.0110.00616.48
7.3.210.0060.00916.23
7.3.200.0130.00319.39
7.3.190.0150.00016.55
7.3.180.0030.01316.42
7.3.170.0070.01016.27
7.3.160.0120.00416.50
7.3.120.0070.01014.76
7.3.110.0090.00714.85
7.3.100.0080.00814.84
7.3.90.0040.00914.65
7.3.80.0030.01014.66
7.3.70.0040.01114.62
7.3.60.0060.00514.87
7.3.50.0030.00814.82
7.3.40.0060.00614.82
7.3.30.0060.00914.59
7.3.20.0100.00116.64
7.3.10.0070.00716.66
7.3.00.0060.00616.65
7.2.330.0160.00316.60
7.2.320.0130.00316.53
7.2.310.0060.01116.30
7.2.300.0060.01016.39
7.2.290.0080.01116.31
7.2.250.0030.01514.87
7.2.240.0100.00914.91
7.2.230.0080.00614.72
7.2.220.0050.00814.88
7.2.210.0070.00714.94
7.2.200.0100.00614.79
7.2.190.0120.00414.88
7.2.180.0070.00714.78
7.2.170.0040.00914.98
7.2.60.0110.00416.91
7.2.00.0030.01019.33
7.1.330.0010.01315.78
7.1.320.0060.01015.53
7.1.310.0070.00515.69
7.1.300.0060.00515.62
7.1.290.0030.00915.79
7.1.280.0060.00515.70
7.1.270.0060.00715.52
7.1.260.0030.01015.55
7.1.200.0060.00915.68
7.1.100.0030.00617.92
7.1.70.0070.00017.05
7.1.60.0070.01419.19
7.1.50.0120.00916.56
7.1.00.0000.07722.44
7.0.200.0040.00416.73
7.0.60.0000.06320.01
7.0.50.0030.09017.80
7.0.40.0070.09320.52
7.0.30.0300.04020.29
7.0.20.0170.08320.06
7.0.10.0100.07020.27
7.0.00.0100.08720.24
5.6.280.0000.03721.14
5.6.210.0100.04320.50
5.6.200.0070.08318.16
5.6.190.0030.04720.55
5.6.180.3600.04020.60
5.6.170.0200.08720.54
5.6.160.0170.07720.41
5.6.150.0130.07718.28
5.6.140.0100.07718.28
5.6.130.0000.08718.11
5.6.120.0070.04020.98
5.6.110.0070.07720.96
5.6.100.0100.07720.88
5.6.90.0070.06020.94
5.6.80.0000.04320.37
5.6.70.0100.03320.36
5.5.350.0230.06320.43
5.5.340.0030.04017.98
5.5.330.0100.06320.40
5.5.320.0370.06320.19
5.5.310.0300.07720.30
5.5.300.0000.05317.98
5.5.290.0100.06317.98
5.5.280.0070.07320.97
5.5.270.0030.05020.95
5.5.260.0070.07720.63
5.5.250.0070.08720.79
5.5.240.0400.06320.18
5.4.450.0600.06319.38
5.4.440.0870.05019.60
5.4.430.0870.05319.44
5.4.420.1000.05719.58
5.4.410.0870.06319.42
5.4.400.1030.04719.23
5.4.390.0800.05319.35
5.4.380.0970.06019.06
5.4.370.0570.06019.06
5.4.360.0730.06319.28
5.4.350.0970.04718.97
5.4.340.1030.04719.36
5.4.320.0770.05319.27
5.4.310.0970.05718.95
5.4.300.0870.08318.83
5.4.290.0970.05719.11
5.4.280.1100.06318.84
5.4.270.1000.06719.24
5.4.260.1070.05719.11
5.4.250.1100.04719.11
5.4.240.0900.05718.83
5.4.230.0870.05719.16
5.4.220.0970.05018.84
5.4.210.0800.07318.98
5.4.200.0870.04316.82
5.4.190.0800.05719.28
5.4.180.1170.04718.98
5.4.170.1030.07318.98
5.4.160.0900.04319.14
5.4.150.1000.05019.23
5.4.140.0930.05716.32
5.4.130.0970.05016.53
5.4.120.1070.05016.57
5.4.110.1030.04316.48
5.4.100.0800.05716.50
5.4.90.0970.06316.56
5.4.80.0970.05316.31
5.4.70.0830.05016.41
5.4.60.0770.05716.54
5.4.50.1030.04716.53
5.4.40.0600.06016.40
5.4.30.0500.05316.54
5.4.20.0800.06016.58
5.4.10.0930.05716.31
5.4.00.0900.04316.03
5.3.290.1000.05714.59
5.3.280.1130.05714.48
5.3.270.0830.06014.65
5.3.260.0770.06014.68
5.3.250.0870.05314.82
5.3.240.0930.04714.61
5.3.230.0930.05714.61
5.3.220.0800.06014.71
5.3.210.0970.05714.56
5.3.200.0830.05014.57
5.3.190.0800.05314.43
5.3.180.0470.07014.57
5.3.170.0700.05014.42
5.3.160.0230.04714.57
5.3.150.0430.04314.45
5.3.140.0730.05314.77
5.3.130.0900.07014.44
5.3.120.0600.05714.59
5.3.110.0330.04714.77
5.3.100.0230.04714.10
5.3.90.0530.06013.91
5.3.80.0770.05714.15
5.3.70.0630.05314.04
5.3.60.0770.04714.05
5.3.50.0800.04013.95
5.3.40.0600.05713.85
5.3.30.0570.04713.99
5.3.20.0600.05313.60
5.3.10.0200.04013.58
5.3.00.0270.04313.68
5.2.170.0070.04311.15
5.2.160.0300.03711.09
5.2.150.0600.04311.19
5.2.140.0700.03011.09
5.2.130.0530.04711.15
5.2.120.0570.04011.11
5.2.110.0530.05011.03
5.2.100.0530.04311.15
5.2.90.0530.05311.01
5.2.80.0670.04311.14
5.2.70.0730.04310.95
5.2.60.0730.04310.89
5.2.50.0530.04011.06
5.2.40.0600.04310.99
5.2.30.0570.04010.88
5.2.20.0400.05310.86
5.2.10.0570.04010.91
5.2.00.0300.04310.68
5.1.60.0430.03310.05
5.1.50.0370.0309.87
5.1.40.0630.0339.89
5.1.30.0530.03710.41
5.1.20.0570.05310.38
5.1.10.0530.04010.00
5.1.00.0430.04310.11
5.0.50.0230.0308.59
5.0.40.0170.0338.42
5.0.30.0270.0478.24
5.0.20.0170.0308.12
5.0.10.0270.0278.17
5.0.00.0330.0508.24
4.4.90.0200.0235.88
4.4.80.0230.0205.82
4.4.70.0200.0235.82
4.4.60.0230.0235.74
4.4.50.0170.0235.82
4.4.40.0330.0305.82
4.4.30.0230.0205.86
4.4.20.0200.0275.92
4.4.10.0300.0205.83
4.4.00.0270.0335.83
4.3.110.0230.0205.69
4.3.100.0270.0235.72
4.3.90.0130.0305.66
4.3.80.0200.0375.67
4.3.70.0170.0235.70
4.3.60.0230.0175.70
4.3.50.0300.0205.65
4.3.40.0230.0375.72
4.3.30.0170.0234.47
4.3.20.0170.0204.49
4.3.10.0100.0234.45
4.3.00.0130.0207.03

preferences:
70.06 ms | 401 KiB | 5 Q