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($price 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); var_dump($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.0080.00819.62
8.5.20.0080.00221.14
8.5.10.0090.00916.84
8.5.00.0130.00820.26
8.4.180.0120.00919.80
8.4.170.0130.00823.95
8.4.160.0080.00219.76
8.4.150.0080.00416.83
8.4.140.0110.01117.60
8.4.130.0130.00817.66
8.4.120.0080.01120.64
8.4.110.0060.00222.75
8.4.100.0120.00817.66
8.4.90.0120.00818.71
8.4.80.0050.00317.95
8.4.70.0160.00717.80
8.4.60.0090.00919.16
8.4.50.0140.00719.77
8.4.40.0060.01319.43
8.4.30.0110.00820.27
8.4.20.0080.01218.96
8.4.10.0060.00317.86
8.3.300.0120.00920.98
8.3.290.0120.00821.02
8.3.280.0180.00418.55
8.3.270.0130.00616.65
8.3.260.0080.01216.81
8.3.250.0090.00918.81
8.3.240.0100.00916.75
8.3.230.0090.01016.64
8.3.220.0130.00617.18
8.3.210.0110.00916.80
8.3.200.0050.00416.64
8.3.190.0040.01118.62
8.3.180.0060.00816.78
8.3.170.0040.01116.73
8.3.160.0120.00616.72
8.3.150.0110.00416.96
8.3.140.0040.00417.34
8.3.130.0000.00818.64
8.3.120.0160.00318.86
8.3.110.0000.00816.75
8.3.100.0030.00618.42
8.3.90.0000.00826.77
8.3.80.0060.00319.36
8.3.70.0040.01118.56
8.3.60.0090.00917.00
8.3.50.0140.00718.18
8.3.40.0120.00318.83
8.3.30.0090.00618.91
8.3.20.0000.00824.18
8.3.10.0050.00324.66
8.3.00.0070.00026.16
8.2.300.0130.00920.55
8.2.290.0070.01120.48
8.2.280.0090.01018.59
8.2.270.0130.00616.90
8.2.260.0040.00416.72
8.2.250.0030.00618.38
8.2.240.0000.00819.11
8.2.230.0030.00620.94
8.2.220.0030.00624.06
8.2.210.0080.00026.77
8.2.200.0110.00018.88
8.2.190.0150.00318.54
8.2.180.0070.00725.92
8.2.170.0080.01119.13
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0090.00624.66
8.2.130.0090.00026.16
8.2.120.0050.00326.35
8.2.110.0000.00921.17
8.2.100.0090.00318.03
8.2.90.0000.00818.03
8.2.80.0000.01117.97
8.2.70.0000.00817.75
8.2.60.0030.00517.90
8.2.50.0000.00818.05
8.2.40.0050.00318.22
8.2.30.0000.00718.18
8.2.20.0040.00418.04
8.2.10.0000.00819.32
8.2.00.0070.00019.39
8.1.340.0100.00921.60
8.1.330.0140.00520.28
8.1.320.0100.00817.89
8.1.310.0070.00718.16
8.1.300.0050.00518.07
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0030.00623.99
8.1.260.0080.00028.09
8.1.250.0030.00528.09
8.1.240.0090.00023.81
8.1.230.0110.00022.74
8.1.220.0030.00617.74
8.1.210.0030.00620.05
8.1.200.0100.00017.35
8.1.190.0080.00017.23
8.1.180.0030.00518.10
8.1.170.0000.00918.59
8.1.160.0040.00419.09
8.1.150.0000.00718.95
8.1.140.0080.00018.90
8.1.130.0000.00720.21
8.1.120.0000.01017.40
8.1.110.0000.00817.51
8.1.100.0040.00417.42
8.1.90.0050.00317.45
8.1.80.0030.00617.46
8.1.70.0030.00617.36
8.1.60.0000.00817.50
8.1.50.0000.00817.43
8.1.40.0000.00817.54
8.1.30.0060.00617.59
8.1.20.0030.00617.65
8.1.10.0030.00717.45
8.1.00.0050.00217.63
8.0.300.0070.00319.93
8.0.290.0060.00316.88
8.0.280.0070.00318.46
8.0.270.0030.00318.02
8.0.260.0000.00718.49
8.0.250.0080.00017.00
8.0.240.0000.00717.08
8.0.230.0000.00717.01
8.0.220.0000.00816.93
8.0.210.0030.00316.95
8.0.200.0030.00316.95
8.0.190.0000.00717.05
8.0.180.0070.00017.04
8.0.170.0040.00416.88
8.0.160.0040.00416.92
8.0.150.0040.00416.89
8.0.140.0000.00716.91
8.0.130.0030.00313.48
8.0.120.0050.00516.83
8.0.110.0080.00016.91
8.0.100.0040.00417.02
8.0.90.0040.00417.03
8.0.80.0080.00716.99
8.0.70.0040.00416.79
8.0.60.0050.00316.91
8.0.50.0040.00416.97
8.0.30.0090.00816.90
8.0.20.0130.00616.94
8.0.10.0090.01217.09
8.0.00.0080.01517.06
7.4.330.0020.00215.55
7.4.320.0030.00316.57
7.4.300.0030.00516.54
7.4.290.0080.00016.57
7.4.280.0040.00416.52
7.4.270.0040.00416.61
7.4.260.0000.00513.21
7.4.250.0000.00716.57
7.4.240.0070.00016.54
7.4.230.0070.00016.50
7.4.220.0050.00216.61
7.4.210.0080.00916.63
7.4.200.0000.00716.33
7.4.160.0100.01116.61
7.4.150.0110.00816.47
7.4.140.0110.01016.49
7.4.130.0070.01216.51
7.4.120.0100.01016.40
7.4.110.0110.00616.49
7.4.100.0100.00716.58
7.4.90.0130.00716.48
7.4.80.0100.00516.51
7.4.70.0110.00816.44
7.4.60.0100.00416.51
7.4.50.0070.01316.38
7.4.40.0100.00716.40
7.4.30.0090.00816.47
7.4.20.0110.00916.47
7.4.10.0020.01616.53
7.4.00.0080.00716.43
7.3.330.0030.00416.48
7.3.320.0000.00613.15
7.3.310.0000.00716.34
7.3.300.0030.00316.44
7.3.290.0100.00516.44
7.3.270.0070.00916.35
7.3.260.0110.00816.37
7.3.250.0080.01016.32
7.3.240.0050.01216.35
7.3.230.0070.00916.39
7.3.220.0090.01116.35
7.3.210.0090.01016.29
7.3.200.0070.01016.34
7.3.190.0130.00316.28
7.3.180.0060.01016.33
7.3.170.0050.01016.33
7.3.160.0120.00316.35
7.3.150.0120.00816.31
7.3.140.0130.00716.28
7.3.130.0050.01116.33
7.3.120.0020.01216.34
7.3.110.0080.00816.25
7.3.100.0090.00516.21
7.3.90.0010.01316.59
7.3.80.0080.00916.31
7.3.70.0070.01016.45
7.3.60.0100.00716.44
7.3.50.0090.00916.51
7.3.40.0070.00716.40
7.3.30.0120.00516.44
7.3.20.0140.00816.43
7.3.10.0100.01016.44
7.3.00.0090.01116.36

preferences:
55.04 ms | 1498 KiB | 5 Q