3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = array(); for ($i=0; $i<6; $i++ ) { $month[]= $i++; } 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.0090.00618.43
8.3.50.0070.01222.12
8.3.40.0100.00718.84
8.3.30.0130.00718.76
8.3.20.0000.00820.12
8.3.10.0040.00423.36
8.3.00.0040.00420.77
8.2.180.0070.00716.38
8.2.170.0110.00422.96
8.2.160.0070.00720.44
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0070.00020.98
8.2.110.0080.00022.01
8.2.100.0080.00320.38
8.2.90.0040.00419.28
8.2.80.0080.00017.97
8.2.70.0070.00317.63
8.2.60.0080.00017.79
8.2.50.0000.00818.07
8.2.40.0040.00419.88
8.2.30.0000.00718.16
8.2.20.0070.00017.68
8.2.10.0000.00717.85
8.2.00.0000.00817.66
8.1.280.0100.00625.92
8.1.270.0040.00423.96
8.1.260.0050.00326.35
8.1.250.0030.00728.09
8.1.240.0030.00621.80
8.1.230.0080.00319.06
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.13
8.1.190.0030.00517.13
8.1.180.0050.00318.10
8.1.170.0030.00618.29
8.1.160.0040.00421.95
8.1.150.0000.00718.57
8.1.140.0080.00017.29
8.1.130.0040.00417.82
8.1.120.0000.00817.31
8.1.110.0070.00017.34
8.1.100.0030.00317.30
8.1.90.0000.00717.34
8.1.80.0040.00417.40
8.1.70.0030.00317.38
8.1.60.0040.00417.47
8.1.50.0000.00917.35
8.1.40.0060.00317.34
8.1.30.0030.00517.49
8.1.20.0040.00417.56
8.1.10.0060.00317.30
8.1.00.0040.00417.42
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00818.37
8.0.270.0060.00317.12
8.0.260.0050.00317.23
8.0.250.0030.00316.86
8.0.240.0030.00316.85
8.0.230.0050.00316.89
8.0.220.0030.00316.81
8.0.210.0040.00416.82
8.0.200.0060.00016.79
8.0.190.0040.00416.89
8.0.180.0060.00316.86
8.0.170.0080.00016.93
8.0.160.0040.00416.71
8.0.150.0050.00216.82
8.0.140.0040.00416.79
8.0.130.0000.00613.25
8.0.120.0070.00016.77
8.0.110.0000.00716.86
8.0.100.0000.00716.78
8.0.90.0000.00816.62
8.0.80.0110.00816.85
8.0.70.0000.00716.82
8.0.60.0030.00316.64
8.0.50.0040.00416.67
8.0.30.0130.00916.88
8.0.20.0110.00817.40
8.0.10.0040.00416.81
8.0.00.0090.01016.75
7.4.330.0020.00215.01
7.4.320.0000.00716.56
7.4.300.0040.00416.37
7.4.290.0040.00416.52
7.4.280.0030.00516.52
7.4.270.0000.00716.34
7.4.260.0070.00016.52
7.4.250.0040.00416.50
7.4.240.0050.00216.43
7.4.230.0030.00316.48
7.4.220.0140.00316.38
7.4.210.0090.00616.59
7.4.200.0070.00016.32
7.4.190.0040.00416.67
7.4.160.0060.01016.41
7.4.150.0100.00717.40
7.4.140.0110.00917.86
7.4.130.0130.00816.34
7.4.120.0070.01016.38
7.4.110.0090.00816.39
7.4.100.0100.01116.31
7.4.90.0070.01016.38
7.4.80.0090.00919.39
7.4.70.0120.00416.41
7.4.60.0070.01016.27
7.4.50.0000.00816.33
7.4.40.0060.01116.30
7.4.30.0040.01116.34
7.4.00.0120.00314.66
7.3.330.0020.00213.14
7.3.320.0000.00513.09
7.3.310.0000.00816.22
7.3.300.0000.00616.16
7.3.290.0100.00316.28
7.3.280.0100.00616.29
7.3.270.0130.00317.40
7.3.260.0070.01016.23
7.3.250.0120.00716.36
7.3.240.0090.00916.43
7.3.230.0060.01016.39
7.3.210.0070.01016.54
7.3.200.0060.01219.39
7.3.190.0140.00716.37
7.3.180.0100.00716.64
7.3.170.0100.00616.27
7.3.160.0120.00916.66
7.3.120.0030.01414.96
7.2.330.0090.01316.31
7.2.320.0070.01416.57
7.2.310.0080.00816.53
7.2.300.0080.00816.70
7.2.290.0090.00916.43
7.2.60.0060.00916.78
7.2.00.0080.00818.79
7.1.200.0090.00315.90
7.1.100.0100.00318.33
7.1.70.0000.00817.34
7.1.60.0070.01619.70
7.1.50.0140.01017.09
7.1.00.0030.07322.57
7.0.200.0000.00716.69
7.0.140.0100.06321.95
7.0.60.0100.07319.92
7.0.50.0130.06017.86
7.0.40.0070.05020.11
7.0.30.0300.04720.17
7.0.20.0300.05720.21
7.0.10.0100.08720.23
7.0.00.0130.08320.18
5.6.280.0030.07321.02
5.6.210.0230.08020.70
5.6.200.0170.05018.19
5.6.190.0200.05020.45
5.6.180.3470.04320.57
5.6.170.0230.04020.55
5.6.160.0100.07020.47
5.6.150.0070.03718.14
5.6.140.0070.07018.17
5.6.130.0030.08718.24
5.6.120.0070.08720.88
5.6.110.0030.08320.98
5.6.100.0030.04021.11
5.6.90.0170.06720.98
5.6.80.0000.04720.38
5.6.70.4430.03720.37
5.5.350.0230.05720.39
5.5.340.0000.09017.95
5.5.330.0000.04720.14
5.5.320.0300.07320.25
5.5.310.0300.07020.18
5.5.300.0070.03718.04
5.5.290.0130.07017.92
5.5.280.0100.08020.76
5.5.270.0070.04320.86
5.5.260.0070.04320.84
5.5.250.0030.08720.54
5.5.240.0230.03320.16
5.4.450.0900.04019.43
5.4.440.0370.04019.54
5.4.430.0370.04049.60
5.4.420.0300.04345.53
5.4.410.0130.04742.28
5.4.400.0370.04739.55
5.4.390.0200.03737.99
5.4.380.0270.04318.55
5.4.370.0230.05318.53
5.4.360.0170.07018.74
5.4.350.0200.04718.72
5.4.340.0130.05018.61
5.4.320.0070.03912.48
5.4.310.0020.04412.48
5.4.300.0120.04712.48
5.4.290.0070.05412.48
5.4.280.0080.05112.38
5.4.270.0080.05112.38
5.4.260.0080.05312.38
5.4.250.0070.05412.38
5.4.240.0080.05212.38
5.4.230.0100.05112.37
5.4.220.0060.05512.37
5.4.210.0060.05312.37
5.4.200.0070.05412.37
5.4.190.0090.05112.36
5.4.180.0090.05312.37
5.4.170.0050.05712.38
5.4.160.0090.04812.38
5.4.150.0070.05112.37
5.4.140.0060.07712.05
5.4.130.0110.03812.04
5.4.120.0110.03612.00
5.4.110.0070.04012.00
5.4.100.0070.04011.99
5.4.90.0080.04511.99
5.4.80.0080.03611.99
5.4.70.0080.03411.99
5.4.60.0130.04611.98
5.4.50.0060.03711.99
5.4.40.0050.03711.97
5.4.30.0050.04211.97
5.4.20.0060.04111.97
5.4.10.0080.03511.98
5.4.00.0080.03711.47
5.3.290.0110.05112.80
5.3.280.0060.04312.71
5.3.270.0060.04612.73
5.3.260.0100.04412.72
5.3.250.0030.04312.71
5.3.240.0040.04212.72
5.3.230.0060.03912.71
5.3.220.0090.03812.68
5.3.210.0110.04912.68
5.3.200.0070.05012.68
5.3.190.0100.05112.68
5.3.180.0140.04812.68
5.3.170.0100.05512.66
5.3.160.0100.05612.67
5.3.150.0240.07512.67
5.3.140.0130.05612.66
5.3.130.0110.05212.66
5.3.120.0110.04812.66
5.3.110.0100.04612.66
5.3.100.0030.04112.12
5.3.90.0080.03512.09
5.3.80.0090.03812.07
5.3.70.0080.03912.08
5.3.60.0160.03612.07
5.3.50.0160.04212.01
5.3.40.0110.06912.01
5.3.30.0130.04311.97
5.3.20.0090.03911.75
5.3.10.0100.03511.72
5.3.00.0050.04011.70
5.2.170.0090.0279.21
5.2.160.0080.0329.20
5.2.150.0050.0369.21
5.2.140.0060.0339.20
5.2.130.0040.0339.16
5.2.120.0050.0319.16
5.2.110.0080.0289.17
5.2.100.0070.0309.17
5.2.90.0080.0289.16
5.2.80.0080.0309.16
5.2.70.0060.0379.16
5.2.60.0090.0379.11
5.2.50.0100.0369.09
5.2.40.0050.0369.06
5.2.30.0040.0449.04
5.2.20.0050.0409.02
5.2.10.0040.0348.93
5.2.00.0080.0408.79
5.1.60.0080.0318.08
5.1.50.0050.0348.07
5.1.40.0060.0338.05
5.1.30.0070.0288.40
5.1.20.0050.0308.43
5.1.10.0050.0288.15
5.1.00.0090.0348.15
5.0.50.0070.0186.63
5.0.40.0040.0206.49
5.0.30.0030.0336.30
5.0.20.0020.0236.27
5.0.10.0030.0226.24
5.0.00.0030.0336.24
4.4.90.0030.0164.78
4.4.80.0020.0174.76
4.4.70.0010.0174.75
4.4.60.0010.0184.75
4.4.50.0010.0174.77
4.4.40.0060.0224.71
4.4.30.0050.0144.76
4.4.20.0040.0164.84
4.4.10.0030.0174.85
4.4.00.0030.0254.76
4.3.110.0040.0154.67
4.3.100.0050.0134.67
4.3.90.0010.0174.64
4.3.80.0030.0254.58
4.3.70.0030.0154.63
4.3.60.0060.0134.63
4.3.50.0020.0174.63
4.3.40.0060.0264.54
4.3.30.0030.0183.29
4.3.20.0020.0163.27
4.3.10.0000.0183.23
4.3.00.0000.02037.55

preferences:
37.39 ms | 401 KiB | 5 Q