3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = array( array('type' => 'AAA', 'label_id' => 'A1,35'), array('type' => 'AAA', 'label_id' => 'A2,34'), array('type' => 'BBB', 'label_id' => 'B1,29'), array('type' => 'CCC', 'label_id' => 'C1,20'), array('type' => 'CCC', 'label_id' => 'C2,19'), array('type' => 'CCC', 'label_id' => 'C3,18') ); $grouped_types = array(); foreach($types as $type){ $grouped_types[$type['type']][] = $type; } var_export($grouped_types);

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.10.0120.00620.05
8.5.00.0130.00824.85
8.4.160.0120.00922.13
8.4.150.0020.00014.05
8.4.140.0120.00817.47
8.4.130.0040.00918.63
8.4.120.0140.00724.09
8.4.110.0040.00618.86
8.4.100.0120.00917.68
8.4.90.0090.01020.70
8.4.80.0060.00220.57
8.4.70.0060.00817.50
8.4.60.0080.01118.59
8.4.50.0110.00919.30
8.4.40.0170.00320.59
8.4.30.0130.00620.50
8.4.20.0080.00818.01
8.4.10.0090.00021.95
8.3.280.0130.00818.17
8.3.270.0110.00816.59
8.3.260.0150.00516.61
8.3.250.0130.00519.07
8.3.240.0100.00917.19
8.3.230.0140.00416.57
8.3.220.0130.00620.64
8.3.210.0110.00816.79
8.3.200.0020.00616.62
8.3.190.0130.00617.20
8.3.180.0130.00716.59
8.3.170.0100.01019.09
8.3.160.0090.01018.42
8.3.150.0050.00317.31
8.3.140.0040.00418.30
8.3.130.0150.00316.56
8.3.120.0040.00418.99
8.3.110.0000.00820.94
8.3.100.0090.00024.06
8.3.90.0040.00426.77
8.3.80.0070.00716.50
8.3.70.0190.00416.58
8.3.60.0110.01118.68
8.3.50.0100.00719.87
8.3.40.0120.00321.70
8.3.30.0110.00418.54
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0120.00820.63
8.2.280.0050.00418.54
8.2.270.0070.00717.04
8.2.260.0000.00820.68
8.2.250.0050.00318.29
8.2.240.0040.00418.58
8.2.230.0060.00322.58
8.2.220.0080.00037.54
8.2.210.0120.00826.77
8.2.200.0030.00816.49
8.2.190.0100.00716.75
8.2.180.0130.00325.92
8.2.170.0110.00718.96
8.2.160.0060.00922.96
8.2.150.0050.00925.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.89
8.2.110.0060.00319.27
8.2.100.0000.01219.57
8.2.90.0060.00619.23
8.2.80.0060.00317.97
8.2.70.0090.00017.75
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0050.00318.29
8.2.30.0000.00717.99
8.2.20.0040.00420.43
8.2.10.0070.00017.92
8.2.00.0030.00719.15
8.1.330.0100.00922.06
8.1.320.0110.01016.16
8.1.310.0060.00316.51
8.1.300.0030.00618.32
8.1.290.0080.00018.88
8.1.280.0170.00025.92
8.1.270.0060.00323.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00321.25
8.1.230.0060.00618.95
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0000.01217.23
8.1.190.0080.00017.23
8.1.180.0080.00018.10
8.1.170.0000.00818.67
8.1.160.0050.00318.88
8.1.150.0040.00418.63
8.1.140.0000.00817.36
8.1.130.0030.00318.93
8.1.120.0030.00317.49
8.1.110.0040.00417.41
8.1.100.0040.00417.44
8.1.90.0030.00517.33
8.1.80.0040.00717.35
8.1.70.0030.00617.38
8.1.60.0030.00617.57
8.1.50.0070.00317.37
8.1.40.0000.00917.48
8.1.30.0000.00917.51
8.1.20.0040.00717.62
8.1.10.0000.00817.46
8.1.00.0030.00617.27
8.0.300.0040.00418.77
8.0.290.0070.00416.75
8.0.280.0040.00418.48
8.0.270.0000.00716.87
8.0.260.0000.00818.37
8.0.250.0040.00416.94
8.0.240.0030.00616.88
8.0.230.0000.01016.89
8.0.220.0000.00716.87
8.0.210.0040.00416.71
8.0.200.0060.00316.85
8.0.190.0050.00316.81
8.0.180.0060.00316.88
8.0.170.0030.00516.87
8.0.160.0060.00316.73
8.0.150.0030.00616.82
8.0.140.0030.00616.82
8.0.130.0090.00016.70
8.0.120.0060.00316.85
8.0.110.0030.00316.90
8.0.100.0000.00716.85
8.0.90.0030.00516.89
8.0.80.0000.00716.85
8.0.70.0030.00516.92
8.0.60.0000.01016.84
8.0.50.0060.00316.80
8.0.30.0030.00616.79
8.0.20.0100.00016.53
8.0.10.0110.00216.45
7.4.330.0030.00315.55
7.4.320.0060.00016.44
7.4.300.0100.00316.51
7.4.290.0100.00316.32
7.4.280.0090.00616.34
7.4.270.0100.00716.56
7.4.260.0100.00316.23
7.4.250.0050.00816.25
7.4.240.0160.00016.36
7.4.230.0170.00016.00
7.4.220.0110.00615.95
7.4.210.0140.00016.05
7.4.200.0000.01416.14
7.4.190.0100.00616.22
7.4.180.0040.00716.25
7.4.160.0120.00416.00
7.4.150.0140.00516.24
7.4.140.0060.00916.07
7.4.130.0090.00716.13
7.4.120.0110.00416.13
7.4.110.0130.00216.24
7.4.100.0070.00816.18
7.4.90.0130.00316.21
7.4.80.0100.00515.83
7.4.70.0060.00616.02
7.4.60.0160.00316.02
7.4.50.0100.00416.04
7.4.40.0140.00015.95
7.4.30.0140.00016.10
7.4.20.0030.01015.96
7.4.10.0090.00416.06
7.4.00.0100.00415.97

preferences:
40.73 ms | 403 KiB | 5 Q