3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = array(); $inc = 1; for ($i=6; $i>0; $i-- ) { $month[]= $inc++; } print_r($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.0120.00818.30
8.3.50.0080.01022.12
8.3.40.0110.00318.71
8.3.30.0100.00318.90
8.3.20.0050.00320.25
8.3.10.0040.00423.39
8.3.00.0040.00420.96
8.2.180.0080.01216.32
8.2.170.0170.00322.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00520.80
8.2.110.0060.00322.21
8.2.100.0070.00420.56
8.2.90.0060.00319.23
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00818.03
8.2.50.0000.00918.07
8.2.40.0000.00718.22
8.2.30.0020.00518.24
8.2.20.0000.00817.64
8.2.10.0070.00018.05
8.2.00.0000.00717.52
8.1.280.0110.00325.92
8.1.270.0050.00323.82
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.19
8.1.230.0030.00719.01
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.13
8.1.180.0080.00018.10
8.1.170.0000.00818.50
8.1.160.0070.00021.86
8.1.150.0060.00318.63
8.1.140.0000.00717.45
8.1.130.0070.00017.82
8.1.120.0070.00017.30
8.1.110.0040.00417.42
8.1.100.0040.00417.43
8.1.90.0050.00317.44
8.1.80.0000.00717.38
8.1.70.0070.00017.32
8.1.60.0040.00417.40
8.1.50.0000.00817.46
8.1.40.0000.00717.45
8.1.30.0080.00017.47
8.1.20.0030.00617.51
8.1.10.0000.00817.43
8.1.00.0050.00317.29
8.0.300.0050.00318.77
8.0.290.0070.00016.75
8.0.280.0050.00318.29
8.0.270.0060.00317.10
8.0.260.0000.00617.15
8.0.250.0070.00016.88
8.0.240.0000.00716.88
8.0.230.0030.00316.93
8.0.220.0060.00016.70
8.0.210.0070.00016.80
8.0.200.0050.00216.88
8.0.190.0030.00616.91
8.0.180.0000.00816.81
8.0.170.0000.00816.74
8.0.160.0000.00716.80
8.0.150.0070.00016.72
8.0.140.0000.00716.77
8.0.130.0000.00513.25
8.0.120.0040.00416.81
8.0.110.0050.00316.72
8.0.100.0070.00016.78
8.0.90.0000.00716.73
8.0.80.0120.00316.92
8.0.70.0050.00216.87
8.0.60.0040.00416.71
8.0.50.0000.00716.65
8.0.30.0070.01617.10
8.0.20.0080.01017.40
8.0.10.0040.00416.75
8.0.00.0100.01016.64
7.4.330.0000.00515.00
7.4.320.0030.00316.48
7.4.300.0000.00616.45
7.4.290.0070.00016.46
7.4.280.0080.00016.38
7.4.270.0030.00316.56
7.4.260.0000.00716.45
7.4.250.0040.00316.49
7.4.240.0030.00516.45
7.4.230.0040.00416.57
7.4.220.0160.00316.44
7.4.210.0300.01116.56
7.4.200.0030.00316.51
7.4.190.0030.00316.70
7.4.160.0030.01416.51
7.4.150.0120.01217.40
7.4.140.0130.00617.86
7.4.130.0080.00916.42
7.4.120.0130.00516.53
7.4.110.0100.00716.46
7.4.100.0130.00616.51
7.4.90.0060.01016.51
7.4.80.0070.01519.39
7.4.70.0140.00616.40
7.4.60.0100.01016.50
7.4.50.0000.00816.57
7.4.40.0000.01516.27
7.4.30.0110.00516.36
7.4.00.0030.01015.05
7.3.330.0000.00713.19
7.3.320.0030.00213.00
7.3.310.0040.00416.32
7.3.300.0030.00316.16
7.3.290.0070.00716.27
7.3.280.0070.01216.30
7.3.270.0130.00417.40
7.3.260.0140.00316.45
7.3.250.0120.01216.40
7.3.240.0070.01016.65
7.3.230.0060.00916.39
7.3.210.0060.01016.30
7.3.200.0070.01019.39
7.3.190.0130.00716.25
7.3.180.0100.00616.18
7.3.170.0070.00716.59
7.3.160.0070.01016.46
7.3.120.0100.00314.77
7.3.10.0110.00316.57
7.3.00.0130.00316.26
7.2.330.0140.01016.38
7.2.320.0080.00816.61
7.2.310.0090.00616.23
7.2.300.0090.01316.63
7.2.290.0110.00616.76
7.2.130.0130.00616.64
7.2.120.0130.00016.38
7.2.110.0050.00516.86
7.2.100.0060.00616.28
7.2.90.0130.00016.56
7.2.80.0000.00816.40
7.2.70.0140.00316.81
7.2.60.0030.01016.86
7.2.50.0100.01016.70
7.2.40.0120.00016.50
7.2.30.0070.00716.84
7.2.20.0080.00816.88
7.2.10.0080.00816.60
7.2.00.0060.00916.61
7.1.250.0040.00715.51
7.1.70.0040.01117.16
7.1.60.0120.01219.70
7.1.50.0070.01716.97
7.1.00.0070.07022.46
7.0.200.0030.00616.63
7.0.140.0030.07322.15
7.0.60.0070.03719.86
7.0.50.0100.04717.73
7.0.40.0170.05720.27
7.0.30.0330.07320.16
7.0.20.0270.06020.12
7.0.10.0030.07720.30
7.0.00.0030.08720.26
5.6.280.0130.06720.77
5.6.210.0030.07320.76
5.6.200.0070.04718.15
5.6.190.0030.05020.65
5.6.180.0430.07320.61
5.6.170.0200.06720.54
5.6.160.0070.08720.39
5.6.150.0070.07018.18
5.6.140.0000.04318.11
5.6.130.0070.06018.27
5.6.120.0100.06020.98
5.6.110.0070.04020.88
5.6.100.0030.08321.03
5.6.90.0030.07021.13
5.6.80.0100.06020.40
5.5.350.0200.04020.46
5.5.340.0070.05717.96
5.5.330.0070.05320.40
5.5.320.0300.04320.34
5.5.310.0270.07320.36
5.5.300.0000.09318.08
5.5.290.0100.06318.06
5.5.280.0070.05320.76
5.5.270.0030.09020.87
5.5.260.0030.08320.75
5.5.250.0070.07720.71
5.5.240.0070.08020.18
5.4.450.0470.03719.47
5.4.440.0370.05019.28
5.4.430.0230.04319.16
5.4.420.0770.04019.38
5.4.410.0200.05351.49
5.4.400.0400.04346.76
5.4.390.0170.04343.84
5.4.380.0200.05018.81
5.4.370.0200.04718.55
5.4.360.0230.04718.61
5.4.350.0230.04318.47
5.4.340.0100.05718.72
5.4.320.0100.03712.49
5.4.310.0050.03912.48
5.4.300.0100.05012.48
5.4.290.0120.05312.48
5.4.280.0070.05412.38
5.4.270.0090.05012.38
5.4.260.0070.05512.38
5.4.250.0080.05412.38
5.4.240.0110.05012.38
5.4.230.0080.05512.37
5.4.220.0080.05212.37
5.4.210.0120.05112.37
5.4.200.0140.04912.37
5.4.190.0080.05612.36
5.4.180.0080.05412.37
5.4.170.0090.05212.38
5.4.160.0080.06512.37
5.4.150.0130.05412.37
5.4.140.0150.05312.05
5.4.130.0080.05612.04
5.4.120.0110.05412.00
5.4.110.0090.05612.00
5.4.100.0090.05411.99
5.4.90.0070.05411.99
5.4.80.0090.05211.99
5.4.70.0090.04911.99
5.4.60.0070.05311.98
5.4.50.0100.05311.98
5.4.40.0110.04911.97
5.4.30.0050.05411.98
5.4.20.0040.05811.97
5.4.10.0080.05211.97
5.4.00.0050.05711.46
5.3.290.0060.04212.80
5.3.280.0080.05512.71
5.3.270.0090.05712.73
5.3.260.0050.05812.72
5.3.250.0080.05512.72
5.3.240.0040.05812.72
5.3.230.0100.05212.71
5.3.220.0090.05512.68
5.3.210.0150.05112.68
5.3.200.0090.05412.68
5.3.190.0060.05612.68
5.3.180.0120.05812.67
5.3.170.0150.05212.67
5.3.160.0090.05612.67
5.3.150.0130.07412.68
5.3.140.0100.05512.66
5.3.130.0080.05812.66
5.3.120.0100.05612.66
5.3.110.0100.05712.66
5.3.100.0070.05412.12
5.3.90.0110.05112.09
5.3.80.0040.05612.08
5.3.70.0070.05212.08
5.3.60.0080.05212.06
5.3.50.0060.05212.01
5.3.40.0040.05412.01
5.3.30.0070.05111.97
5.3.20.0050.05211.75
5.3.10.0060.05411.71
5.3.00.0100.05111.71
5.2.170.0060.0469.20
5.2.160.0120.0399.20
5.2.150.0090.0469.20
5.2.140.0060.0459.20
5.2.130.0120.0579.16
5.2.120.0090.0409.16
5.2.110.0050.0439.17
5.2.100.0060.0439.16
5.2.90.0070.0429.17
5.2.80.0040.0479.16
5.2.70.0070.0449.16
5.2.60.0070.0449.12
5.2.50.0070.0449.09
5.2.40.0090.0389.06
5.2.30.0040.0469.04
5.2.20.0060.0419.02
5.2.10.0060.0428.93
5.2.00.0080.0418.79
5.1.60.0040.0388.07
5.1.50.0050.0368.07
5.1.40.0040.0388.06
5.1.30.0030.0438.41
5.1.20.0060.0398.43
5.1.10.0030.0398.15
5.1.00.0080.0368.15
5.0.50.0070.0276.63
5.0.40.0060.0286.49
5.0.30.0030.0456.30
5.0.20.0060.0266.27
5.0.10.0040.0296.25
5.0.00.0040.0406.24
4.4.90.0050.0214.78
4.4.80.0010.0254.75
4.4.70.0060.0204.75
4.4.60.0040.0214.76
4.4.50.0030.0234.77
4.4.40.0050.0324.71
4.4.30.0070.0184.75
4.4.20.0040.0234.84
4.4.10.0040.0234.85
4.4.00.0050.0334.76
4.3.110.0040.0234.67
4.3.100.0040.0224.66
4.3.90.0060.0144.64
4.3.80.0040.0284.58
4.3.70.0010.0204.63
4.3.60.0010.0194.62
4.3.50.0020.0234.63
4.3.40.0050.0314.54
4.3.30.0020.0273.30
4.3.20.0050.0213.27
4.3.10.0070.0193.23
4.3.00.0030.02042.31

preferences:
39.38 ms | 401 KiB | 5 Q