3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(1); $arr = ['a', 'b']; $child = &$arr; $i = 0; foreach ($child AS $key => $fruit) { $child[$i] = $fruit; unset($child[$key]); $i++; } var_dump($child);

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.0070.00718.43
8.3.50.0090.00921.20
8.3.40.0070.01418.65
8.3.30.0070.00719.09
8.3.20.0000.00820.24
8.3.10.0050.00320.36
8.3.00.0000.00819.13
8.2.180.0140.00416.88
8.2.170.0070.01022.96
8.2.160.0070.01020.52
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00422.19
8.2.110.0040.00419.24
8.2.100.0070.00717.91
8.2.90.0050.00319.15
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0040.00418.05
8.2.50.0000.00818.10
8.2.40.0000.00919.94
8.2.30.0090.00518.14
8.2.20.0070.00017.65
8.2.10.0040.00418.08
8.2.00.0070.00017.82
8.1.280.0170.00325.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.14
8.1.230.0000.01117.77
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0050.00318.65
8.1.160.0070.00021.92
8.1.150.0040.00418.89
8.1.140.0000.00917.45
8.1.130.0040.00417.88
8.1.120.0070.00017.48
8.1.110.0040.00417.38
8.1.100.0000.00817.44
8.1.90.0000.00717.34
8.1.80.0000.00717.52
8.1.70.0030.00317.28
8.1.60.0000.00817.59
8.1.50.0050.00317.43
8.1.40.0030.00517.52
8.1.30.0050.00517.63
8.1.20.0030.00517.71
8.1.10.0070.00017.52
8.1.00.0040.00717.45
8.0.300.0000.00819.89
8.0.290.0070.00016.75
8.0.280.0030.00318.40
8.0.270.0070.00017.26
8.0.260.0030.00317.30
8.0.250.0030.00317.00
8.0.240.0070.00016.85
8.0.230.0000.00716.95
8.0.220.0060.00016.86
8.0.210.0030.00316.95
8.0.200.0070.00016.93
8.0.190.0050.00316.84
8.0.180.0050.00216.91
8.0.170.0030.00516.88
8.0.160.0000.00716.89
8.0.150.0000.00716.73
8.0.140.0040.00316.84
8.0.130.0000.00613.31
8.0.120.0000.00816.75
8.0.110.0000.00716.77
8.0.100.0030.00516.72
8.0.90.0000.00816.93
8.0.80.0120.00316.82
8.0.70.0000.00716.79
8.0.60.0000.00716.89
8.0.50.0020.00516.76
8.0.30.0090.01017.16
8.0.20.0110.00817.40
8.0.10.0040.00416.94
8.0.00.0100.00816.84
7.4.330.0000.00515.05
7.4.320.0060.00016.49
7.4.300.0060.00016.51
7.4.290.0070.00016.65
7.4.280.0070.00016.41
7.4.270.0030.00316.63
7.4.260.0000.00716.39
7.4.250.0040.00416.52
7.4.240.0000.00716.51
7.4.230.0030.00316.63
7.4.220.0100.01416.60
7.4.210.0100.00716.40
7.4.200.0030.00316.40
7.4.160.0100.00716.50
7.4.150.0220.00417.40
7.4.140.0100.00917.86
7.4.130.0080.01016.56
7.4.120.0070.00916.59
7.4.110.0060.01016.40
7.4.100.0090.01216.43
7.4.90.0170.00316.59
7.4.80.0070.01019.39
7.4.70.0030.01216.39
7.4.60.0030.01316.71
7.4.50.0030.00616.49
7.4.40.0110.00616.48
7.4.30.0100.01016.57
7.4.00.0150.00015.05
7.3.330.0030.00313.09
7.3.320.0050.00013.13
7.3.310.0040.00416.39
7.3.300.0000.00716.28
7.3.290.0030.01216.29
7.3.280.0130.00416.33
7.3.270.0190.00017.40
7.3.260.0100.00716.41
7.3.250.0130.00516.30
7.3.240.0070.01416.20
7.3.230.0070.01016.39
7.3.210.0060.01216.65
7.3.200.0130.00719.39
7.3.190.0090.00916.32
7.3.180.0000.01616.38
7.3.170.0070.01016.43
7.3.160.0070.00716.28
7.2.330.0090.01016.70
7.2.320.0150.00416.51
7.2.310.0030.01816.65
7.2.300.0100.01316.79
7.2.290.0100.00716.71
7.2.60.0030.01417.00
7.2.00.0030.01319.12
7.1.200.0060.00915.73
7.1.100.0030.00918.28
7.1.70.0070.00317.09
7.1.60.0130.01319.32
7.1.50.0070.01416.92
7.1.00.0030.07722.32
7.0.200.0030.00716.69
7.0.140.0000.07022.09
7.0.70.5170.03019.89
7.0.60.0070.08019.97
7.0.50.0000.06317.66
7.0.40.0100.07020.26
7.0.30.0200.04320.02
7.0.20.0200.04020.34
7.0.10.0270.08020.09
7.0.00.0100.08020.13
5.6.280.0170.06020.92
5.6.210.0070.05720.52
5.6.200.0070.08718.13
5.6.190.0100.04320.60
5.6.180.0200.08320.59
5.6.170.0330.07720.49
5.6.160.0000.04720.46
5.6.150.0030.06718.17
5.6.140.0030.04018.12
5.6.130.0100.07718.16
5.6.120.0130.06020.89
5.6.110.0100.07320.97
5.6.100.0130.06721.02
5.6.90.0130.07721.07
5.6.80.0130.06320.53
5.6.70.0070.08020.36
5.5.350.0030.06020.40
5.5.340.0000.04317.95
5.5.330.0230.07320.01
5.5.320.0070.08020.23
5.5.310.0230.08320.18
5.5.300.0070.04317.97
5.5.290.0030.08718.02
5.5.280.0100.07320.77
5.5.270.0030.06320.84
5.5.260.0030.07720.87
5.5.250.0130.07720.58
5.5.240.0070.08020.14
5.4.450.0300.04719.57
5.4.440.0370.05019.48
5.4.430.0270.04319.54
5.4.420.0630.00019.51
5.4.410.0770.00019.19
5.4.400.0630.00019.02
5.4.390.0630.00019.05
5.4.380.0770.00019.07
5.4.370.0600.00019.13
5.4.360.0700.00019.16
5.4.350.0830.00019.07
5.4.340.0800.00019.05
5.4.320.0060.04012.45
5.4.310.0040.04012.45
5.4.300.0060.03912.45
5.4.290.0080.03612.45
5.4.280.0080.03512.35
5.4.270.0140.03712.35
5.4.260.0090.03812.35
5.4.250.0060.03712.35
5.4.240.0040.03812.35
5.4.230.0050.03912.34
5.4.220.0050.04312.34
5.4.210.0120.03412.34
5.4.200.0060.04012.34
5.4.190.0090.03312.34
5.4.180.0100.03812.34
5.4.170.0060.03612.35
5.4.160.0090.03312.35
5.4.150.0060.03712.34
5.4.140.0060.03812.03
5.4.130.0070.03512.02
5.4.120.0030.03811.97
5.4.110.0040.03811.96
5.4.100.0030.03811.97
5.4.90.0070.03611.97
5.4.80.0050.03811.97
5.4.70.0050.03511.96
5.4.60.0050.03511.96
5.4.50.0040.04211.96
5.4.40.0110.04111.95
5.4.30.0070.04811.95
5.4.20.0120.04711.95
5.4.10.0050.04411.95
5.4.00.0070.05211.44
5.3.290.0040.04312.80
5.3.280.0060.04512.71
5.3.270.0080.04212.72
5.3.260.0080.04312.72
5.3.250.0080.04512.72
5.3.240.0060.04312.72
5.3.230.0070.04612.71
5.3.220.0040.03912.68
5.3.210.0050.04812.68
5.3.200.0050.03912.68
5.3.190.0080.03612.68
5.3.180.0060.03612.67
5.3.170.0090.03312.67
5.3.160.0080.03812.68
5.3.150.0100.04112.67
5.3.140.0050.04012.66
5.3.130.0060.04112.66
5.3.120.0050.04112.65
5.3.110.0080.03912.66
5.3.100.0100.03412.12
5.3.90.0080.04012.09
5.3.80.0050.03712.08
5.3.70.0040.04112.08
5.3.60.0050.03812.06
5.3.50.0020.04212.00
5.3.40.0100.03412.00
5.3.30.0040.03711.95
5.3.20.0050.03711.72
5.3.10.0030.03711.70
5.3.00.0070.04011.68
5.2.170.0070.0299.18
5.2.160.0070.0339.18
5.2.150.0060.0359.18
5.2.140.0090.0319.18
5.2.130.0060.0329.14
5.2.120.0040.0299.14
5.2.110.0040.0349.15
5.2.100.0030.0319.14
5.2.90.0060.0299.14
5.2.80.0080.0339.14
5.2.70.0030.0349.13
5.2.60.0070.0289.09
5.2.50.0080.0329.06
5.2.40.0070.0299.04
5.2.30.0030.0319.01
5.2.20.0050.0389.00
5.2.10.0060.0328.93
5.2.00.0010.0348.78
5.1.60.0030.0268.06
5.1.50.0060.0298.06
5.1.40.0050.0248.04
5.1.30.0030.0278.40
5.1.20.0060.0248.42
5.1.10.0040.0318.14
5.1.00.0050.0248.14
5.0.50.0040.0196.63
5.0.40.0040.0186.48
5.0.30.0030.0346.29
5.0.20.0060.0166.27
5.0.10.0040.0196.24
5.0.00.0030.0316.23
4.4.90.0030.0214.78
4.4.80.0020.0214.75
4.4.70.0030.0164.75
4.4.60.0020.0204.76
4.4.50.0010.0184.77
4.4.40.0050.0234.71
4.4.30.0030.0164.76
4.4.20.0020.0184.85
4.4.10.0030.0154.85
4.4.00.0050.0274.76
4.3.110.0060.0144.67
4.3.100.0040.0164.66
4.3.90.0040.0194.63
4.3.80.0060.0294.58
4.3.70.0020.0184.63
4.3.60.0040.0154.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0020.0163.29
4.3.20.0020.0163.26
4.3.10.0020.0163.22
4.3.00.0000.02013.59

preferences:
52.88 ms | 401 KiB | 5 Q