3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ [ 'id' => 96, 'shipping_no' => 212755-1, 'part_no' => 'reterty', 'description' => 'tyrfyt', 'packaging_type' => 'PC' ], [ 'id' => 96, 'shipping_no' => 212755-1, 'part_no' => 'dftgtryh', 'description' => 'dfhgfyh', 'packaging_type' => 'PC' ], [ 'id' => 97, 'shipping_no' => 212755-2, 'part_no' => 'ZeoDark', 'description' => 's%c%s%c%s', 'packaging_type' => 'PC' ] ]; $result = []; foreach ($input as $row) { $id = $row['id']; unset($row['id']); if (isset($result[$id])) { $result[$id]['value'][] = $row; } else { $result[$id] = [ 'key' => $id, 'value' => [$row] ]; } } var_export( array_values($result) );

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.00.0110.01020.14
8.4.150.0020.00014.05
8.4.140.0140.00717.34
8.4.130.0150.00217.84
8.4.120.0050.00520.75
8.4.110.0120.00922.30
8.4.100.0130.00717.45
8.4.90.0140.01020.54
8.4.80.0150.00319.08
8.4.70.0080.00718.80
8.4.60.0120.00820.82
8.4.50.0100.01018.53
8.4.40.0200.00017.81
8.4.30.0030.00618.48
8.4.20.0160.00017.77
8.4.10.0060.00325.92
8.3.280.0140.01018.41
8.3.270.0130.00816.69
8.3.260.0120.00616.70
8.3.250.0110.00619.08
8.3.240.0120.00716.88
8.3.230.0130.00616.40
8.3.220.0100.00718.83
8.3.210.0110.00816.51
8.3.200.0060.00316.77
8.3.190.0120.00917.33
8.3.180.0110.01018.75
8.3.170.0040.01518.96
8.3.160.0150.00317.19
8.3.150.0090.00917.12
8.3.140.0040.00416.73
8.3.130.0080.00018.37
8.3.120.0160.00020.76
8.3.110.0060.00318.59
8.3.100.0100.00618.41
8.3.90.0000.00826.77
8.3.80.0080.00019.36
8.3.70.0080.00818.43
8.3.60.0090.00618.32
8.3.50.0110.00723.66
8.3.40.0090.00618.52
8.3.30.0090.00518.46
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.290.0110.00817.30
8.2.280.0080.01220.05
8.2.270.0140.00717.38
8.2.260.0120.00617.94
8.2.250.0060.00916.70
8.2.240.0000.00817.24
8.2.230.0060.00320.94
8.2.220.0070.00024.06
8.2.210.0040.00426.77
8.2.200.0030.00618.88
8.2.190.0070.00718.43
8.2.180.0080.01125.92
8.2.170.0090.00618.79
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00026.35
8.2.110.0090.00020.94
8.2.100.0090.00317.84
8.2.90.0080.00019.46
8.2.80.0000.00820.52
8.2.70.0070.00417.75
8.2.60.0090.00018.04
8.2.50.0040.00418.07
8.2.40.0080.00018.34
8.2.30.0040.00418.04
8.2.20.0040.00418.01
8.2.10.0050.00220.63
8.2.00.0050.00219.32
8.1.330.0110.00621.89
8.1.320.0130.00618.20
8.1.310.0100.00318.30
8.1.300.0030.00517.76
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0020.00528.09
8.1.250.0040.00428.09
8.1.240.0060.00322.11
8.1.230.0070.00320.85
8.1.220.0050.00317.78
8.1.210.0060.00319.10
8.1.200.0070.00417.36
8.1.190.0030.00517.35
8.1.180.0030.00618.10
8.1.170.0110.00018.46
8.1.160.0000.00818.86
8.1.150.0000.00718.69
8.1.140.0000.00718.84
8.1.130.0080.00020.05
8.1.120.0040.00417.47
8.1.110.0050.00317.46
8.1.100.0050.00517.34
8.1.90.0040.00417.46
8.1.80.0000.00917.38
8.1.70.0070.00017.51
8.1.60.0080.00017.59
8.1.50.0000.00817.42
8.1.40.0000.00917.57
8.1.30.0060.00317.50
8.1.20.0030.00617.55
8.1.10.0050.00317.57
8.1.00.0060.00317.55
8.0.300.0070.00020.08
8.0.290.0080.00316.75
8.0.280.0030.00320.11
8.0.270.0070.00017.93
8.0.260.0050.00218.46
8.0.250.0000.00716.95
8.0.240.0030.00317.00
8.0.230.0000.00716.86
8.0.220.0000.00816.83
8.0.210.0000.00716.84
8.0.200.0040.00416.84
8.0.190.0080.00017.00
8.0.180.0000.00916.95
8.0.170.0060.00316.91
8.0.160.0070.00016.91
8.0.150.0040.00416.79
8.0.140.0000.00916.88
8.0.130.0070.00013.31
8.0.120.0000.00816.89
8.0.110.0000.00816.80
8.0.100.0040.00416.94
8.0.90.0080.00016.73
8.0.80.0110.00816.86
8.0.70.0040.00416.85
8.0.60.0000.00816.91
8.0.50.0000.00716.96
8.0.30.0000.01616.88
8.0.20.0060.01217.40
8.0.10.0120.00617.40
8.0.00.0030.01417.40
7.4.330.0000.00515.55
7.4.320.0030.00316.46
7.4.300.0000.00716.53
7.4.290.0040.00416.47
7.4.280.0040.00416.59
7.4.270.0030.00516.54
7.4.260.0030.00313.27
7.4.250.0030.00516.48
7.4.240.0040.00416.58
7.4.230.0000.00716.51
7.4.220.0040.00416.68
7.4.210.0070.00616.57
7.4.200.0020.00516.67
7.4.150.0070.01117.40
7.4.140.0100.00717.40
7.4.130.0100.01417.40
7.4.120.0120.01317.40
7.4.110.0060.01217.40
7.4.100.0070.01017.40
7.4.90.0030.01417.40
7.4.80.0100.00717.40
7.4.70.0140.00317.40
7.4.60.0110.00717.40
7.4.50.0100.00717.40
7.4.40.0040.01217.40
7.4.30.0110.01117.40
7.4.20.0030.01617.40
7.4.10.0100.00617.40
7.4.00.0070.01117.40
7.3.330.0040.00416.41
7.3.320.0060.00013.16
7.3.310.0000.00716.27
7.3.300.0030.00316.35
7.3.290.0080.00916.30
7.3.270.0140.00617.40
7.3.260.0090.00917.40
7.3.250.0090.01417.40
7.3.240.0080.00817.40
7.3.230.0130.00317.40
7.3.220.0030.01317.40
7.3.210.0030.01317.40
7.3.200.0120.00417.40
7.3.190.0090.00917.40
7.3.180.0070.01017.40
7.3.170.0090.00617.40
7.3.160.0110.00617.40
7.3.150.0080.00817.40
7.3.140.0080.00817.40
7.3.130.0130.00317.40
7.3.120.0150.00317.40
7.3.110.0070.01117.40
7.3.100.0090.00617.40
7.3.90.0130.00317.40
7.3.80.0140.00317.40
7.3.70.0140.00617.40
7.3.60.0130.00317.40
7.3.50.0140.00317.40
7.3.40.0110.00617.40
7.3.30.0080.00817.40
7.3.20.0090.00917.40
7.3.10.0090.00917.40
7.3.00.0090.00917.40

preferences:
29.83 ms | 403 KiB | 5 Q