3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array ( array ( 'id' => 123, 'lfsnr' => 'abc', 'aktion' => 'A' ), array ( 'id' => 123, 'artikel' => 'RGUA 3', 'menge' => '20,18' ), array ( 'id' => 456, 'lfsnr' => '22013552', 'aktion' => 'A' ), array ( 'id' => 456, 'artikel' => 'RG 0/63 UA 3', 'menge' => '20,02' ) ); $the_ids = array_column($input, 'id'); array_multisort($the_ids, SORT_ASC, $input); $output = array(); foreach($the_ids as $p){ $output[$p] = array(); } foreach($input as $i){ $id = $i['id']; foreach($i as $key => $input_identifier){ $output[$id][$key] = $input_identifier; } } $output = array_values($output); print_r($output);

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.0070.01019.64
8.5.20.0050.00521.29
8.5.10.0140.00416.39
8.5.00.0140.00719.91
8.4.180.0120.01322.22
8.4.170.0130.00823.82
8.4.160.0120.01023.89
8.4.150.0060.00616.94
8.4.140.0110.01017.59
8.4.130.0140.00617.85
8.4.120.0090.00920.84
8.4.110.0130.00722.30
8.4.100.0050.00817.63
8.4.90.0120.00817.83
8.4.80.0090.00720.81
8.4.70.0120.00717.90
8.4.60.0140.00617.86
8.4.50.0090.01019.36
8.4.40.0100.00619.24
8.4.30.0140.00720.33
8.4.20.0100.00718.65
8.4.10.0040.00417.48
8.3.300.0120.00820.70
8.3.290.0100.01020.85
8.3.280.0120.01018.41
8.3.270.0120.00816.50
8.3.260.0080.00816.40
8.3.250.0150.00318.84
8.3.240.0160.00316.46
8.3.230.0120.01016.73
8.3.220.0070.00417.16
8.3.210.0130.00616.79
8.3.200.0090.01016.66
8.3.190.0130.00718.32
8.3.180.0050.00316.67
8.3.170.0090.00516.71
8.3.160.0180.00016.63
8.3.150.0110.00716.98
8.3.140.0000.00820.74
8.3.130.0150.00418.39
8.3.120.0000.00819.19
8.3.110.0000.00916.50
8.3.100.0120.00616.52
8.3.90.0070.00326.77
8.3.80.0060.00316.62
8.3.70.0120.00616.58
8.3.60.0140.00716.88
8.3.50.0070.00718.38
8.3.40.0090.00618.67
8.3.30.0070.00718.48
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0110.00918.83
8.2.290.0110.00720.23
8.2.280.0110.00718.68
8.2.270.0110.00716.85
8.2.260.0160.00317.13
8.2.250.0070.00318.27
8.2.240.0070.00416.27
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0100.00726.77
8.2.200.0050.00516.35
8.2.190.0130.00916.63
8.2.180.0030.01125.92
8.2.170.0160.00318.77
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0060.01024.66
8.2.130.0080.00026.16
8.2.120.0080.00026.35
8.2.110.0000.01121.03
8.2.100.0080.00417.97
8.2.90.0030.00617.91
8.2.80.0040.00419.30
8.2.70.0040.00417.75
8.2.60.0000.00817.80
8.2.50.0030.00518.05
8.2.40.0060.00320.07
8.2.30.0040.00418.15
8.2.20.0000.00818.09
8.2.10.0000.00719.38
8.2.00.0070.00019.27
8.1.340.0120.01119.73
8.1.330.0080.01016.54
8.1.320.0040.00615.92
8.1.310.0100.00718.65
8.1.300.0000.00916.30
8.1.290.0030.00630.84
8.1.280.0150.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0030.00628.09
8.1.240.0060.00322.14
8.1.230.0060.00620.88
8.1.220.0050.00317.78
8.1.210.0050.00318.77
8.1.200.0030.00717.47
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0030.00618.67
8.1.160.0030.00318.98
8.1.150.0040.00418.96
8.1.140.0000.00718.90
8.1.130.0000.00820.04
8.1.120.0070.00317.46
8.1.110.0000.00817.34
8.1.100.0080.00017.50
8.1.90.0000.00717.49
8.1.80.0070.00017.35
8.1.70.0000.00817.47
8.1.60.0040.00417.63
8.1.50.0060.00317.52
8.1.40.0030.00617.53
8.1.30.0060.00517.63
8.1.20.0090.00017.69
8.1.10.0000.01017.60
8.1.00.0000.00817.41
8.0.300.0050.00320.10
8.0.290.0020.00516.63
8.0.280.0030.00618.46
8.0.270.0000.00717.98
8.0.260.0030.00318.37
8.0.250.0040.00416.96
8.0.240.0000.00616.98
8.0.230.0000.00716.90
8.0.220.0030.00616.77
8.0.210.0040.00416.97
8.0.200.0000.00716.96
8.0.190.0050.00216.96
8.0.180.0040.00416.96
8.0.170.0030.00516.98
8.0.160.0000.00716.98
8.0.150.0070.00016.79
8.0.140.0050.00216.84
8.0.130.0060.00013.36
8.0.120.0000.00916.82
8.0.110.0000.00716.84
8.0.100.0000.00716.95
8.0.90.0020.00516.94
8.0.80.0100.00516.91
8.0.70.0000.00716.82
8.0.60.0030.00316.91
8.0.50.0030.00516.84
8.0.30.0170.01116.86
8.0.20.0170.01016.90
8.0.10.0240.00816.97
8.0.00.0250.00517.04
7.4.330.0000.00415.55
7.4.320.0060.00016.59
7.4.300.0030.00316.41
7.4.290.0000.00716.55
7.4.280.0000.00816.41
7.4.270.0030.00516.53
7.4.260.0000.00613.31
7.4.250.0070.00016.48
7.4.240.0080.00016.53
7.4.230.0080.00016.66
7.4.220.0070.00016.52
7.4.210.0110.00716.58
7.4.200.0040.00416.71
7.4.160.0160.00616.67
7.4.150.0190.00716.62
7.4.140.0110.01516.47
7.4.130.0170.01116.47
7.4.120.0160.01216.48
7.4.110.0130.01216.47
7.4.100.0180.00916.50
7.4.90.0200.00516.53
7.4.80.0150.00916.56
7.4.70.0140.00816.45
7.4.60.0220.01016.61
7.4.50.0100.01316.44
7.4.40.0140.01216.42
7.4.30.0110.01116.41
7.4.20.0130.01416.49
7.4.10.0220.00516.51
7.4.00.0140.00316.51
7.3.330.0030.00516.16
7.3.320.0050.00013.13
7.3.310.0010.00616.23
7.3.300.0030.00316.32
7.3.290.0050.01116.40
7.3.270.0140.01016.34
7.3.260.0130.01516.28
7.3.250.0180.00816.39
7.3.240.0180.01116.37
7.3.230.0160.01116.33
7.3.220.0130.01416.25
7.3.210.0200.00916.26
7.3.200.0120.01116.32
7.3.190.0170.01116.18
7.3.180.0120.01216.33
7.3.170.0140.01316.28
7.3.160.0140.01116.30
7.3.150.0120.01116.25
7.3.140.0120.01116.30
7.3.130.0140.00716.29
7.3.120.0170.01416.27
7.3.110.0160.01016.19
7.3.100.0140.00916.25
7.3.90.0190.00516.48
7.3.80.0190.00816.25
7.3.70.0170.00516.38
7.3.60.0190.00516.44
7.3.50.0180.00916.46
7.3.40.0120.01416.44
7.3.30.0160.01016.41
7.3.20.0150.00816.52
7.3.10.0110.01516.47
7.3.00.0200.00916.47

preferences:
45.41 ms | 1458 KiB | 5 Q