3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array(); $a[]=array( 'a' => 'a0', 'b' => 'b0' ); foreach($a as $i){ $i['c']='d'; } print_r($a);

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.0190.00616.63
8.3.50.0170.00122.05
8.3.40.0110.00418.88
8.3.30.0110.00718.79
8.3.20.0040.00420.16
8.3.10.0070.00023.61
8.3.00.0000.00720.52
8.2.180.0090.00617.92
8.2.170.0110.00422.96
8.2.160.0060.00922.08
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00022.33
8.2.110.0040.00422.14
8.2.100.0060.00617.78
8.2.90.0050.00319.30
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0030.00519.41
8.2.30.0070.00018.03
8.2.20.0040.00417.71
8.2.10.0040.00417.61
8.2.00.0000.00717.61
8.1.280.0060.00925.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.98
8.1.230.0040.00719.12
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0070.00017.40
8.1.180.0080.00018.10
8.1.170.0060.00318.59
8.1.160.0030.00322.05
8.1.150.0030.00618.64
8.1.140.0080.00017.31
8.1.130.0070.00017.73
8.1.120.0030.00317.36
8.1.110.0070.00017.45
8.1.100.0000.00717.46
8.1.90.0020.00517.43
8.1.80.0000.00717.44
8.1.70.0040.00417.41
8.1.60.0000.00717.58
8.1.50.0000.00817.48
8.1.40.0040.00417.51
8.1.30.0080.00017.63
8.1.20.0040.00417.64
8.1.10.0020.00517.37
8.1.00.0040.00417.33
8.0.300.0070.00018.77
8.0.290.0080.00017.05
8.0.280.0030.00318.29
8.0.270.0030.00317.25
8.0.260.0030.00316.86
8.0.250.0000.00716.87
8.0.240.0000.00716.80
8.0.230.0030.00317.03
8.0.220.0030.00316.77
8.0.210.0080.00016.79
8.0.200.0080.00016.95
8.0.190.0000.00716.81
8.0.180.0000.00816.93
8.0.170.0090.00016.91
8.0.160.0000.00716.90
8.0.150.0000.00716.69
8.0.140.0030.00516.87
8.0.130.0000.00613.29
8.0.120.0050.00316.77
8.0.110.0040.00416.77
8.0.100.0020.00516.86
8.0.90.0030.00516.74
8.0.80.0090.00616.93
8.0.70.0070.00016.85
8.0.60.0000.00816.69
8.0.50.0000.00816.89
8.0.30.0130.00717.16
8.0.20.0070.01017.40
8.0.10.0040.00416.83
8.0.00.0090.00816.73
7.4.330.0050.00015.13
7.4.320.0030.00316.62
7.4.300.0060.00016.61
7.4.290.0030.00316.57
7.4.280.0030.00316.59
7.4.270.0030.00316.59
7.4.260.0000.00716.43
7.4.250.0040.00416.46
7.4.240.0040.00416.51
7.4.230.0070.00016.60
7.4.220.0070.02016.67
7.4.210.0090.00516.58
7.4.200.0000.00716.55
7.4.190.0030.00316.56
7.4.160.0060.01016.50
7.4.150.0100.00717.40
7.4.140.0050.01417.86
7.4.130.0070.00916.50
7.4.120.0100.00716.43
7.4.110.0070.01716.39
7.4.100.0100.00716.41
7.4.90.0080.00816.57
7.4.80.0140.00316.46
7.4.70.0130.00316.38
7.4.60.0070.01016.49
7.4.50.0000.00816.34
7.4.40.0080.00822.77
7.4.30.0120.00316.53
7.4.00.0040.00814.56
7.3.330.0030.00313.12
7.3.320.0000.00613.06
7.3.310.0070.00016.39
7.3.300.0060.00016.31
7.3.290.0100.00316.32
7.3.280.0100.00816.34
7.3.270.0160.00617.40
7.3.260.0150.00616.15
7.3.250.0090.00816.38
7.3.240.0170.00016.42
7.3.230.0090.00616.58
7.3.210.0120.01116.29
7.3.200.0070.01419.39
7.3.190.0130.00716.49
7.3.180.0040.01216.62
7.3.170.0140.00416.64
7.3.160.0100.00716.36
7.3.120.0040.01214.93
7.3.10.0080.00816.65
7.3.00.0070.00316.68
7.2.330.0090.00916.66
7.2.320.0040.01716.64
7.2.310.0070.01116.59
7.2.300.0070.01116.59
7.2.290.0040.01216.69
7.2.130.0040.01217.02
7.2.120.0030.01016.77
7.2.110.0030.01416.69
7.2.100.0060.00316.89
7.2.90.0090.00917.00
7.2.80.0100.00516.84
7.2.70.0000.00916.75
7.2.60.0030.01116.97
7.2.50.0030.00716.95
7.2.40.0060.00916.94
7.2.30.0000.01416.88
7.2.20.0110.00016.91
7.2.10.0040.01116.97
7.2.00.0050.00717.89
7.1.250.0090.00315.80
7.1.200.0000.01415.96
7.1.100.0000.01218.07
7.1.70.0000.00717.05
7.1.60.0000.02319.29
7.1.50.0130.01016.86
7.1.00.0030.07322.54
7.0.200.0100.01016.73
7.0.140.0030.07322.04
7.0.60.0030.06720.04
7.0.50.0070.07317.87
7.0.40.0000.04720.30
7.0.30.0230.04320.20
7.0.20.0370.07020.30
7.0.10.0030.05720.15
7.0.00.0030.04720.09
5.6.280.0070.07020.81
5.6.210.0100.07020.67
5.6.200.0030.08318.29
5.6.190.0030.04020.52
5.6.180.0230.03720.53
5.6.170.0330.05720.50
5.6.160.0000.08720.55
5.6.150.0070.04018.16
5.6.140.0070.04018.27
5.6.130.0070.08718.14
5.6.120.0100.08021.09
5.6.110.0100.05321.00
5.6.100.0100.06321.13
5.6.90.0070.05321.01
5.6.80.0070.08320.39
5.6.70.4470.03720.49
5.5.350.0030.03720.42
5.5.340.0070.08318.07
5.5.330.0000.04320.25
5.5.320.0030.05020.21
5.5.310.0300.06020.38
5.5.300.0130.07718.08
5.5.290.0070.06017.98
5.5.280.0100.04320.88
5.5.270.0130.07720.75
5.5.260.0070.08020.82
5.5.250.0100.08020.45
5.5.240.0230.07020.25
5.4.450.0200.05719.63
5.4.440.0200.05319.19
5.4.430.0570.05019.54
5.4.420.0670.00019.42
5.4.410.0100.06019.06
5.4.400.0130.06018.55
5.4.390.0200.05018.71
5.4.380.0200.05718.46
5.4.370.0000.04318.48
5.4.360.0070.04018.50
5.4.350.0080.03212.00
5.4.340.0060.03512.00
5.4.320.0130.03812.48
5.4.310.0080.04712.48
5.4.300.0110.03912.48
5.4.290.0060.04712.48
5.4.280.0120.04812.34
5.4.270.0090.04812.34
5.4.260.0070.05412.35
5.4.250.0110.04812.35
5.4.240.0120.05312.34
5.4.230.0070.04412.34
5.4.220.0100.03812.34
5.4.210.0100.04212.34
5.4.200.0120.04512.34
5.4.190.0080.04812.34
5.4.180.0110.03812.33
5.4.170.0090.04012.35
5.4.160.0070.03912.34
5.4.150.0070.05012.34
5.4.140.0080.04012.02
5.4.130.0090.07712.01
5.4.120.0050.05211.97
5.4.110.0090.03611.96
5.4.100.0160.04211.96
5.4.90.0090.04111.96
5.4.80.0120.03811.96
5.4.70.0080.04111.96
5.4.60.0140.04911.96
5.4.50.0100.03511.96
5.4.40.0090.03511.95
5.4.30.0090.03511.95
5.4.20.0040.03911.95
5.4.10.0080.03611.95
5.4.00.0020.04211.44
5.3.290.0070.03812.80
5.3.280.0080.04712.71
5.3.270.0080.05512.72
5.3.260.0100.05212.72
5.3.250.0060.04012.72
5.3.240.0150.06012.72
5.3.230.0080.05612.71
5.3.220.0160.04812.68
5.3.210.0110.05112.68
5.3.200.0100.04812.68
5.3.190.0120.05012.68
5.3.180.0090.04112.67
5.3.170.0180.03912.67
5.3.160.0090.03912.68
5.3.150.0100.03612.68
5.3.140.0080.04012.66
5.3.130.0110.04712.65
5.3.120.0080.05212.66
5.3.110.0060.04212.66
5.3.100.0040.04212.12
5.3.90.0070.03812.08
5.3.80.0070.03712.07
5.3.70.0060.04112.08
5.3.60.0060.04212.07
5.3.50.0100.03612.00
5.3.40.0100.04612.00
5.3.30.0100.03511.94
5.3.20.0040.04011.72
5.3.10.0070.03611.69
5.3.00.0080.03611.68
5.2.170.0050.0329.18
5.2.160.0060.0309.18
5.2.150.0060.0309.17
5.2.140.0130.0359.17
5.2.130.0060.0439.13
5.2.120.0090.0379.13
5.2.110.0090.0319.14
5.2.100.0050.0329.13
5.2.90.0130.0399.14
5.2.80.0030.0459.14
5.2.70.0060.0399.13
5.2.60.0110.0389.09
5.2.50.0120.0379.06
5.2.40.0090.0359.03
5.2.30.0090.0389.01
5.2.20.0100.0429.00
5.2.10.0100.0348.91
5.2.00.0100.0388.77
5.1.60.0090.0438.04
5.1.50.0120.0518.04
5.1.40.0090.0428.02
5.1.30.0090.0388.37
5.1.20.0080.0278.40
5.1.10.0070.0378.12
5.1.00.0080.0358.12
5.0.50.0060.0286.60
5.0.40.0090.0246.46
5.0.30.0070.0386.27
5.0.20.0050.0216.24
5.0.10.0060.0326.22
5.0.00.0070.0516.21
4.4.90.0070.0284.78
4.4.80.0090.0254.75
4.4.70.0100.0364.75
4.4.60.0110.0374.76
4.4.50.0060.0254.77
4.4.40.0070.0354.71
4.4.30.0080.0204.76
4.4.20.0060.0284.84
4.4.10.0080.0324.85
4.4.00.0070.0304.76
4.3.110.0040.0254.67
4.3.100.0070.0224.66
4.3.90.0050.0234.64
4.3.80.0080.0314.58
4.3.70.0050.0384.63
4.3.60.0060.0154.63
4.3.50.0020.0184.63
4.3.40.0070.0284.54
4.3.30.0050.0213.27
4.3.20.0040.0243.25
4.3.10.0060.0203.21
4.3.00.0030.0306.82

preferences:
34.91 ms | 400 KiB | 5 Q