3v4l.org

run code in 500+ PHP versions simultaneously
<?php $my_array = array( 0 => array( array( "id" => "121", "slug" => "btm-dc-402" ), array( "id" => "122", "slug" => "btm-dc-403" ), ), 1 => array( array( "id" => "493", "slug" => "jog-buah-401" ), array( "id" => "946", "slug" => "dps-buah-356k" ), ), ); $newArray = []; foreach ($my_array as $key => $value) { $newArray = array_merge($newArray, array_values($value)); } print_r($newArray);

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.80.0060.00216.49
8.5.70.0120.00516.68
8.5.60.0100.00816.66
8.5.50.0090.00416.58
8.5.30.0110.00717.48
8.5.20.0130.00519.46
8.5.10.0140.00420.02
8.5.00.0130.00719.96
8.4.230.0060.00321.96
8.4.220.0120.01219.55
8.4.210.0070.00219.41
8.4.180.0130.00822.07
8.4.170.0110.01120.52
8.4.160.0090.01321.44
8.4.150.0080.00416.77
8.4.140.0090.01317.50
8.4.130.0110.01017.44
8.4.120.0080.00920.84
8.4.110.0070.01222.24
8.4.100.0130.00717.59
8.4.90.0060.00320.57
8.4.80.0120.00720.64
8.4.70.0100.00922.35
8.4.60.0110.00718.81
8.4.50.0090.01119.36
8.4.40.0100.01017.68
8.4.30.0070.01319.03
8.4.20.0080.00418.97
8.4.10.0130.00021.70
8.3.320.0100.00318.29
8.3.310.0080.01118.45
8.3.300.0040.00518.28
8.3.290.0090.01120.82
8.3.280.0100.01118.50
8.3.270.0120.00816.28
8.3.260.0050.00316.67
8.3.250.0070.00618.77
8.3.240.0050.00320.73
8.3.230.0150.00416.48
8.3.220.0050.00219.01
8.3.210.0040.00416.48
8.3.200.0050.00516.42
8.3.190.0080.00719.05
8.3.180.0110.00916.54
8.3.170.0110.00717.17
8.3.160.0120.00616.41
8.3.150.0090.00916.90
8.3.140.0030.00616.50
8.3.130.0040.00416.47
8.3.120.0000.00919.03
8.3.110.0030.01220.94
8.3.100.0030.00624.06
8.3.90.0030.00526.77
8.3.80.0080.00418.43
8.3.70.0040.01416.63
8.3.60.0120.00618.18
8.3.50.0140.00018.48
8.3.40.0100.00320.29
8.3.30.0110.01118.59
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0000.00726.16
8.2.320.0090.00517.94
8.2.310.0110.00819.83
8.2.300.0080.01122.13
8.2.290.0140.00420.12
8.2.280.0030.00520.34
8.2.270.0150.00416.69
8.2.260.0070.00318.65
8.2.250.0040.00818.20
8.2.240.0040.00418.10
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0070.01126.77
8.2.200.0100.00018.16
8.2.190.0140.00418.26
8.2.180.0130.00325.92
8.2.170.0150.00018.77
8.2.160.0110.00422.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0070.00026.16
8.2.110.0030.00620.98
8.2.100.0070.00317.78
8.2.90.0050.00317.75
8.2.80.0090.00018.79
8.2.70.0030.00617.63
8.2.60.0080.00018.04
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0050.00318.00
8.2.20.0060.00319.31
8.2.10.0050.00318.03
8.2.00.0040.00419.18
8.1.340.0140.00517.68
8.1.330.0110.00921.79
8.1.320.0100.00817.64
8.1.310.0060.00316.84
8.1.300.0030.00715.81
8.1.290.0040.00430.84
8.1.280.0110.00725.92
8.1.270.0050.00224.66
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0040.00422.62
8.1.230.0030.00917.61
8.1.220.0040.00417.76
8.1.210.0030.00518.77
8.1.200.0000.01017.36
8.1.190.0050.00317.10
8.1.180.0050.00518.10
8.1.170.0000.00818.72
8.1.160.0000.00718.84
8.1.150.0000.00718.60
8.1.140.0080.00017.45
8.1.130.0000.00718.87
8.1.120.0050.00317.39
8.1.110.0030.00517.46
8.1.100.0000.00717.43
8.1.90.0040.00417.27
8.1.80.0040.00417.41
8.1.70.0000.00717.33
8.1.60.0040.00417.52
8.1.50.0050.00317.51
8.1.40.0080.00017.48
8.1.30.0020.00517.52
8.1.20.0040.00417.57
8.1.10.0040.00417.45
8.1.00.0040.00417.40
8.0.300.0100.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00818.36
8.0.270.0030.00518.07
8.0.260.0030.00318.36
8.0.250.0000.00616.84
8.0.240.0040.00416.85
8.0.230.0040.00416.94
8.0.220.0030.00316.73
8.0.210.0000.00716.79
8.0.200.0000.00716.90
8.0.190.0030.00316.86
8.0.180.0030.00316.71
8.0.170.0000.00716.76
8.0.160.0070.00016.81
8.0.150.0040.00416.70
8.0.140.0040.00416.70
8.0.130.0000.00716.76
8.0.120.0000.00716.73
8.0.110.0060.00016.80
8.0.100.0000.00716.91
8.0.90.0030.00316.79
8.0.80.0000.00616.88
8.0.70.0000.00816.63
8.0.60.0070.00016.78
8.0.50.0000.00716.66
8.0.30.0070.00016.76
8.0.20.0040.00416.85
8.0.10.0060.00016.88
7.4.330.0050.00215.55
7.4.320.0030.00316.43
7.4.300.0060.00016.55
7.4.290.0070.00016.52
7.4.280.0030.00316.42
7.4.270.0060.00016.49
7.4.260.0030.00316.48
7.4.250.0040.00416.46
7.4.240.0070.00016.46
7.4.230.0070.00016.46
7.4.220.0000.00616.43
7.4.210.0040.00416.30
7.4.200.0030.00316.53
7.4.190.0060.00016.63
7.4.180.0070.00016.51
7.4.160.0060.00016.59
7.4.150.0000.00616.42
7.4.140.0000.00716.52
7.4.130.0000.00616.36
7.4.120.0000.00616.36
7.4.110.0060.00016.37
7.4.100.0000.00716.48
7.4.90.0060.00016.34
7.4.80.0030.00316.38
7.4.70.0030.00316.25
7.4.60.0030.00316.31
7.4.50.0000.00716.34
7.4.40.0000.00716.38
7.4.30.0000.00616.30
7.4.20.0060.00016.26
7.4.10.0030.00316.49
7.4.00.0030.00316.40

preferences:
111.53 ms | 1354 KiB | 5 Q