3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 0 => array( 0 => array( 'name' => 'test1', 'country' => 'abc' ), 1 => array( 'name' => 'test2', 'country' => 'xyz' ) ), 1 => array( 'name' => 'test3', 'country' => 'pqr' ), 2 => array( 0 => array( 'name' => 'test1', 'country' => 'abc' ), 1 => array( 'name' => 'test2', 'country' => 'xyz' ), 2 => array( 'name' => 'test1', 'country' => 'abc' ), 3 => array( 'name' => 'test2', 'country' => 'xyz' ) ), 3 => array( 'name' => 'test3', 'country' => 'pqr' ), ); $new = []; foreach($arr as $subarr){ $new = array_merge($new, $subarr); } var_dump($new);

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.4.130.0130.00718.45
8.4.120.0110.00824.14
8.4.110.0120.00819.02
8.4.100.0130.00718.48
8.4.90.0110.00920.61
8.4.80.0050.00418.72
8.4.70.0050.00317.75
8.4.60.0070.00218.68
8.4.50.0110.00918.28
8.4.40.0080.00019.24
8.4.30.0120.00817.70
8.4.20.0170.00319.68
8.4.10.0000.00918.84
8.3.260.0160.00416.59
8.3.250.0110.00819.04
8.3.240.0060.00317.21
8.3.230.0110.00916.82
8.3.220.0080.00918.88
8.3.210.0100.00916.68
8.3.200.0050.00416.59
8.3.190.0100.00417.32
8.3.180.0110.00816.61
8.3.170.0110.00717.07
8.3.160.0040.01518.45
8.3.150.0040.00418.67
8.3.140.0080.00017.22
8.3.130.0030.00618.42
8.3.120.0040.00419.14
8.3.110.0050.00520.94
8.3.100.0080.00016.63
8.3.90.0080.00018.33
8.3.80.0090.00017.97
8.3.70.0040.01218.53
8.3.60.0070.01118.43
8.3.50.0110.00817.50
8.3.40.0040.01118.54
8.3.30.0060.00918.50
8.3.20.0060.00319.02
8.3.10.0000.00821.78
8.3.00.0030.00523.65
8.2.290.0080.01120.31
8.2.280.0110.00818.25
8.2.270.0080.00017.11
8.2.260.0100.00718.85
8.2.250.0080.00018.25
8.2.240.0060.00316.94
8.2.230.0090.00022.58
8.2.220.0150.00024.06
8.2.210.0050.00326.77
8.2.200.0030.00616.75
8.2.190.0100.01016.63
8.2.180.0140.00718.16
8.2.170.0150.00022.96
8.2.160.0070.00719.09
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.01421.07
8.2.110.0070.00419.48
8.2.100.0040.00817.91
8.2.90.0090.00017.75
8.2.80.0040.00418.78
8.2.70.0000.00817.63
8.2.60.0060.00317.50
8.2.50.0060.00317.92
8.2.40.0060.00319.36
8.2.30.0080.00019.24
8.2.20.0090.00017.94
8.2.10.0020.00519.41
8.2.00.0000.00919.51
8.1.330.0130.00621.71
8.1.320.0110.00815.96
8.1.310.0040.00416.77
8.1.300.0070.01316.19
8.1.290.0090.00018.88
8.1.280.0130.00725.92
8.1.270.0080.00022.15
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00323.84
8.1.230.0110.00021.02
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.53
8.1.190.0030.00617.10
8.1.180.0080.00018.10
8.1.170.0000.00817.62
8.1.160.0040.00418.88
8.1.150.0000.00718.89
8.1.140.0040.00417.86
8.1.130.0070.00019.22
8.1.120.0040.00417.42
8.1.110.0050.00517.42
8.1.100.0050.00517.41
8.1.90.0070.00317.34
8.1.80.0000.00717.46
8.1.70.0000.00817.44
8.1.60.0000.00817.52
8.1.50.0000.00717.57
8.1.40.0050.00317.49
8.1.30.0020.00517.61
8.1.20.0040.00417.66
8.1.10.0070.00017.47
8.1.00.0080.00017.38
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.47
8.0.270.0000.00717.14
8.0.260.0030.00316.84
8.0.250.0050.00216.83
8.0.240.0040.00416.98
8.0.230.0040.00416.88
8.0.220.0080.00016.90
8.0.210.0000.00716.84
8.0.200.0040.00416.96
8.0.190.0050.00316.95
8.0.180.0060.00316.93
8.0.170.0090.00016.79
8.0.160.0070.00016.84
8.0.150.0040.00416.88
8.0.140.0040.00416.81
8.0.130.0050.00013.37
8.0.120.0000.00816.86
8.0.110.0070.00016.84
8.0.100.0000.00716.83
8.0.90.0040.00416.98
8.0.80.0110.00616.89
8.0.70.0000.00816.88
8.0.60.0050.00216.93
8.0.50.0000.00716.75
8.0.30.0150.00617.05
8.0.20.0140.01417.40
8.0.10.0040.00416.96
8.0.00.0050.01316.64
7.4.330.0050.00015.55
7.4.320.0030.00316.48
7.4.300.0030.00316.51
7.4.290.0030.00316.39
7.4.280.0040.00416.42
7.4.270.0040.00416.60
7.4.260.0000.00716.50
7.4.250.0000.00716.54
7.4.240.0030.00516.57
7.4.230.0000.00716.38
7.4.220.0020.00616.57
7.4.210.0050.01316.51
7.4.200.0030.00516.61
7.4.160.0140.00516.46
7.4.140.0130.00717.86
7.4.130.0090.00916.52
7.4.120.0090.00916.52
7.4.110.0140.00316.48
7.4.100.0100.00916.64
7.4.90.0140.01016.39
7.4.80.0090.00919.39
7.4.70.0160.00016.53
7.4.60.0120.00416.34
7.4.50.0030.01016.54
7.4.40.0090.00916.46
7.4.00.0040.00714.98
7.3.330.0000.00513.05
7.3.320.0050.00013.01
7.3.310.0030.00316.24
7.3.300.0000.00716.28
7.3.290.0030.00316.15
7.3.280.0110.00616.19
7.3.260.0130.00716.35
7.3.240.0100.00916.36
7.3.230.0060.01116.29
7.3.210.0180.00716.56
7.3.200.0100.00816.49
7.3.190.0120.00616.45
7.3.180.0110.00716.23
7.3.170.0130.00316.47
7.3.160.0030.01416.23
7.2.330.0150.00916.41
7.2.320.0150.00516.78
7.2.310.0150.00316.71
7.2.300.0060.01116.64
7.2.290.0150.00516.86
7.2.80.0610.00714.83
7.2.70.0370.00915.11
7.2.60.0410.00715.05
7.2.50.0400.00714.77
7.2.40.0530.00915.08
7.2.30.0320.01014.98
7.2.20.0510.01315.09
7.2.10.0540.01015.00
7.2.00.0540.01314.84
7.1.200.0080.00015.67
7.1.190.0680.01413.85
7.1.180.0290.01313.96
7.1.170.0390.00313.84
7.1.160.0420.00313.94
7.1.150.0400.00313.68
7.1.140.0510.00713.73
7.1.130.0410.00313.91
7.1.120.0570.00713.94
7.1.110.0370.00713.82
7.1.100.0430.00013.80
7.1.90.0440.00313.76
7.1.80.0380.00713.97
7.1.70.0360.01014.18
7.1.60.0500.01531.71
7.1.50.0720.01031.77
7.1.40.0710.01331.92
7.1.30.1170.00731.89
7.1.20.1050.01631.79
7.1.10.1250.01013.63
7.1.00.0600.00713.67

preferences:
136.03 ms | 403 KiB | 5 Q