3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr1 = array ( 0 => array ( "id" => "123-456-000-000", "name" => "john" ), 1 => array ( "id" => "123-456-789-014", "name" => "james" ) ); $arr2 = array ( 0 => array ( "tin" => "123-456-000-000", "address" => "Japan" ), 1 => array ( "tin" => "123-456-789-014", "address" => "Spain" ) ); foreach ($arr2 as $key => $inner) { $arr1[$key]["address"] = $inner["address"]; } print_r($arr1);

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.5.30.0080.00817.42
8.5.20.0080.00920.16
8.5.10.0080.00920.31
8.5.00.0110.01019.93
8.4.180.0130.00919.74
8.4.170.0100.01120.44
8.4.160.0100.01122.55
8.4.150.0080.00416.78
8.4.140.0160.00517.57
8.4.130.0120.00818.62
8.4.120.0090.00720.43
8.4.110.0110.01018.52
8.4.100.0080.00717.67
8.4.90.0120.00920.80
8.4.80.0120.00818.75
8.4.70.0060.00418.73
8.4.60.0110.00920.54
8.4.50.0040.00518.41
8.4.40.0030.01317.65
8.4.30.0150.00317.58
8.4.20.0070.01017.70
8.4.10.0040.00417.84
8.3.300.0060.01418.43
8.3.290.0150.00820.79
8.3.280.0140.00618.41
8.3.270.0150.00916.86
8.3.260.0040.00516.59
8.3.250.0130.00617.20
8.3.240.0130.00616.55
8.3.230.0120.00816.66
8.3.220.0130.00518.80
8.3.210.0100.00816.84
8.3.200.0090.01016.60
8.3.190.0080.00918.86
8.3.180.0100.00819.14
8.3.170.0040.00416.56
8.3.160.0120.00618.67
8.3.150.0180.00016.75
8.3.140.0040.00418.78
8.3.130.0030.00518.47
8.3.120.0160.00018.87
8.3.110.0040.00416.61
8.3.100.0080.00618.02
8.3.90.0100.01026.77
8.3.80.0000.00918.55
8.3.70.0120.00616.38
8.3.60.0150.00616.49
8.3.50.0300.01021.27
8.3.40.0120.00418.71
8.3.30.0090.00618.89
8.3.20.0040.00420.29
8.3.10.0050.00323.70
8.3.00.0030.00619.78
8.2.300.0120.00820.53
8.2.290.0090.00917.04
8.2.280.0110.00718.25
8.2.270.0110.00618.36
8.2.260.0080.00016.48
8.2.250.0000.00716.55
8.2.240.0090.00018.75
8.2.230.0040.00420.94
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0110.00016.50
8.2.190.0080.00816.58
8.2.180.0120.00916.50
8.2.170.0040.01122.96
8.2.160.0070.01020.29
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0060.00320.94
8.2.120.0030.00626.35
8.2.110.0100.00020.57
8.2.100.0000.01317.78
8.2.90.0040.00417.75
8.2.80.0000.00818.92
8.2.70.0060.00318.04
8.2.60.0100.00017.87
8.2.50.0050.00319.21
8.2.40.0000.00821.12
8.2.30.0000.00719.29
8.2.20.0000.00717.72
8.2.10.0050.00518.17
8.2.00.0040.00417.98
8.1.340.0100.00920.28
8.1.330.0110.00815.85
8.1.320.0120.00617.67
8.1.310.0090.00916.05
8.1.300.0090.00316.23
8.1.290.0030.00630.84
8.1.280.0070.01425.92
8.1.270.0090.00020.28
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0090.00317.70
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0080.00017.36
8.1.190.0080.00017.36
8.1.180.0040.00418.97
8.1.170.0030.00618.54
8.1.160.0000.00719.01
8.1.150.0000.00718.91
8.1.140.0080.00019.54
8.1.130.0000.00717.59
8.1.120.0030.00317.50
8.1.110.0000.00817.50
8.1.100.0040.00417.34
8.1.90.0040.00417.43
8.1.80.0090.00017.41
8.1.70.0000.00717.31
8.1.60.0040.00417.54
8.1.50.0080.00017.45
8.1.40.0070.00017.37
8.1.30.0080.00017.66
8.1.20.0030.00617.70
8.1.10.0040.00417.46
8.1.00.0100.00017.45
8.0.300.0060.00318.77
8.0.290.0000.00916.75
8.0.280.0000.00718.42
8.0.270.0000.00717.10
8.0.260.0000.00617.26
8.0.250.0000.00716.93
8.0.240.0050.00216.98
8.0.230.0000.00816.81
8.0.220.0040.00416.92
8.0.210.0080.00016.79
8.0.200.0030.00316.85
8.0.190.0000.00916.85
8.0.180.0040.00416.89
8.0.170.0040.00416.84
8.0.160.0000.00816.91
8.0.150.0030.00616.81
8.0.140.0000.00716.79
8.0.130.0060.00013.28
8.0.120.0000.00716.76
8.0.110.0070.00016.84
8.0.100.0040.00316.89
8.0.90.0050.00316.79
8.0.80.0110.00416.93
8.0.70.0000.00816.77
8.0.60.0030.00516.86
8.0.50.0040.00416.99
8.0.30.0130.00617.08
8.0.20.0080.01017.40
8.0.10.0000.00716.85
8.0.00.0080.01016.66
7.4.330.0000.00516.70
7.4.320.0030.00316.52
7.4.300.0030.00416.58
7.4.290.0070.00016.60
7.4.280.0050.00216.54
7.4.270.0000.00716.41
7.4.260.0030.00316.55
7.4.250.0040.00416.56
7.4.240.0000.00716.47
7.4.230.0030.00316.63
7.4.220.0030.01516.52
7.4.210.0110.00816.58
7.4.200.0040.00416.56
7.4.160.0160.00516.33
7.4.150.0070.01117.40
7.4.140.0100.00917.86
7.4.130.0080.00916.58
7.4.120.0110.01216.57
7.4.110.0030.01416.57
7.4.100.0090.01216.54
7.4.90.0090.00916.54
7.4.80.0140.00519.39
7.4.70.0120.00616.50
7.4.60.0030.01216.46
7.4.50.0030.01116.56
7.4.40.0130.00316.69
7.4.30.0040.01616.38
7.4.00.0030.01314.80
7.3.330.0050.00013.12
7.3.320.0030.00313.30
7.3.310.0030.00316.22
7.3.300.0030.00316.30
7.3.290.0050.00216.34
7.3.280.0090.00816.31
7.3.270.0090.00917.40
7.3.260.0040.01316.31
7.3.250.0100.01016.43
7.3.240.0120.00516.49
7.3.230.0130.00316.42
7.3.210.0060.01016.49
7.3.200.0040.01516.29
7.3.190.0030.01316.45
7.3.180.0060.01016.39
7.3.170.0080.01016.38
7.3.160.0090.00616.26
7.2.330.0030.01316.50
7.2.320.0090.00816.46
7.2.310.0100.00616.64
7.2.300.0070.01016.59
7.2.290.0100.01016.68
7.2.60.0060.01016.90
7.2.00.0050.00519.30
7.1.200.0030.00915.70
7.1.100.0070.00717.98
7.1.70.0040.00417.20
7.1.60.0080.00519.52
7.1.50.0060.01916.86
7.1.00.0030.07722.43
7.0.200.0000.00916.74
7.0.60.0070.07319.95
7.0.50.0070.08317.79
7.0.40.0000.08720.26
7.0.30.0330.07020.33
7.0.20.0200.07320.15
7.0.10.0100.08320.05
7.0.00.0030.08020.20
5.6.280.0070.07020.82
5.6.210.0070.05020.61
5.6.200.0100.04318.18
5.6.190.0000.06020.60
5.6.180.0200.05720.55
5.6.170.0170.05020.47
5.6.160.0100.07320.46
5.6.150.0130.07718.12
5.6.140.0070.04018.18
5.6.130.0070.07718.16
5.6.120.0030.08021.11
5.6.110.0170.07320.98
5.6.100.0070.08720.99
5.6.90.0170.06321.10
5.6.80.0130.07320.51
5.5.350.0330.07320.32
5.5.340.0000.05718.00
5.5.330.0000.04720.19
5.5.320.0400.04720.35
5.5.310.0230.04320.18
5.5.300.0100.03717.94
5.5.290.0000.07018.06
5.5.280.0100.08320.88
5.5.270.0130.07720.86
5.5.260.0000.04720.71
5.5.250.0070.08320.58
5.5.240.3930.04020.27

preferences:
111.1 ms | 1548 KiB | 5 Q