3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 0 => [ 'regulations_label' => 'Europe', 'groups_label' => 'G1', 'filters_label' => 'FF1' ], 1 => [ 'regulations_label' => 'Europe', 'groups_label' => 'G1', 'filters_label' => 'FF900' ], 2 => [ 'regulations_label' => 'Europe', 'groups_label' => 'G1', 'filters_label' => 'FF324234' ], 3 => [ 'regulations_label' => 'Europe', 'groups_label' => 'G2', 'filters_label' => 'FF23942' ], 4 => [ 'regulations_label' => 'America', 'groups_label' => 'G29', 'filters_label' => 'FF3242' ], 5 => [ 'regulations_label' => 'America', 'groups_label' => 'G29', 'filters_label' => 'FF78978' ], 6 => [ 'regulations_label' => 'America', 'groups_label' => 'G29', 'filters_label' => 'FF48395043' ], 7 => [ 'regulations_label' => 'Asia', 'groups_label' => 'G2000', 'filters_label' => 'FF7' ] ]; foreach ($data as $key => $d) { if ($key > 0) { if ($data[$key-1]['regulations_label'] !== $d['regulations_label']) { echo $d['regulations_label'] . "\n"; } if ($data[$key-1]['groups_label'] !== $d['groups_label']) { echo "-" . $d['groups_label'] . "\n"; } } else { echo $d['regulations_label'] . "\n"; echo "-" . $d['groups_label'] . "\n"; } echo ' -- ' . $d['filters_label'] . "\n"; }

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.4.120.0130.00720.52
8.4.110.0110.00719.00
8.4.100.0110.00817.77
8.4.90.0150.00620.65
8.4.80.0100.01119.07
8.4.70.0100.00923.97
8.4.60.0130.00820.46
8.4.50.0060.00320.33
8.4.40.0130.00719.32
8.4.30.0080.01124.50
8.4.20.0040.01120.61
8.4.10.0040.00819.70
8.3.250.0050.00418.89
8.3.240.0120.00816.57
8.3.230.0110.00816.61
8.3.220.0080.00719.01
8.3.210.0050.00416.60
8.3.200.0070.00216.73
8.3.190.0140.00617.22
8.3.180.0050.00419.03
8.3.170.0090.00919.11
8.3.160.0150.00318.19
8.3.150.0070.01117.01
8.3.140.0070.00717.26
8.3.130.0060.00318.22
8.3.120.0030.00620.64
8.3.110.0070.01316.38
8.3.100.0040.00424.06
8.3.90.0060.00326.77
8.3.80.0060.00619.36
8.3.70.0110.00718.18
8.3.60.0070.01018.52
8.3.50.0130.00818.08
8.3.40.0110.00718.84
8.3.30.0110.00418.56
8.3.20.0090.00021.77
8.3.10.0080.00021.70
8.3.00.0050.00323.66
8.2.290.0050.00618.54
8.2.280.0090.00620.04
8.2.270.0070.01116.75
8.2.260.0090.00916.90
8.2.250.0030.00618.61
8.2.240.0030.00617.17
8.2.230.0080.00020.94
8.2.220.0130.00737.54
8.2.210.0080.00026.77
8.2.200.0040.00818.88
8.2.190.0110.00416.63
8.2.180.0110.01116.48
8.2.170.0110.01122.96
8.2.160.0100.00319.46
8.2.150.0040.00425.66
8.2.140.0050.00524.66
8.2.130.0040.00426.16
8.2.120.0090.00020.57
8.2.110.0030.01319.30
8.2.100.0090.00317.91
8.2.90.0070.00417.89
8.2.80.0200.00417.67
8.2.70.0180.00217.56
8.2.60.0150.00417.50
8.2.50.0150.00417.73
8.2.40.0130.00518.92
8.2.30.0120.00518.36
8.2.20.0120.00617.82
8.2.10.0100.00918.29
8.2.00.0110.00618.32
8.1.330.0120.00716.80
8.1.320.0110.00817.83
8.1.310.0040.00416.67
8.1.300.0050.00520.23
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0040.00422.07
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00022.58
8.1.230.0070.00420.85
8.1.220.0100.01017.52
8.1.210.0180.00318.13
8.1.200.0170.00217.18
8.1.190.0120.00517.31
8.1.180.0140.00317.55
8.1.170.0110.00717.88
8.1.160.0150.00318.02
8.1.150.0150.00217.96
8.1.140.0140.00317.93
8.1.130.0120.00517.38
8.1.120.0110.00717.19
8.1.110.0110.00817.34
8.1.100.0100.00817.27
8.1.90.0160.00417.39
8.1.80.0180.00117.38
8.1.70.0130.00417.25
8.1.60.0120.00617.30
8.1.50.0150.00317.40
8.1.40.0110.00717.38
8.1.30.0140.00417.47
8.1.20.0140.00417.49
8.1.10.0110.00617.41
8.1.00.0120.00517.37
8.0.300.0130.00418.26
8.0.290.0120.00616.56
8.0.280.0110.00617.44
8.0.270.0150.00216.88
8.0.260.0060.01116.61
8.0.250.0140.00316.68
8.0.240.0170.00216.70
8.0.230.0170.00116.78
8.0.220.0130.00516.67
8.0.210.0100.00716.62
8.0.200.0150.00316.80
8.0.190.0140.00416.69
8.0.180.0150.00316.87
8.0.170.0090.00916.71
8.0.160.0150.00316.82
8.0.150.0180.00116.62
8.0.140.0140.00416.64
8.0.130.0130.00314.87
8.0.120.0120.00516.73
8.0.110.0120.00516.60
8.0.100.0170.00216.67
8.0.90.0170.00716.56
8.0.80.0140.00516.74
8.0.70.0140.00416.70
8.0.60.0110.00616.56
8.0.50.0130.00516.70
8.0.30.0150.00616.74
8.0.20.0120.01116.71
8.0.10.0160.00216.81
8.0.00.0160.00516.84
7.4.330.0110.00215.96
7.4.320.0110.00416.40
7.4.300.0140.00216.45
7.4.290.0110.00516.50
7.4.280.0090.00816.45
7.4.270.0140.00216.43
7.4.260.0120.00516.49
7.4.250.0120.00416.44
7.4.240.0100.00316.50
7.4.230.0130.00316.51
7.4.220.0120.00416.55
7.4.210.0090.00916.57
7.4.200.0120.00316.49
7.4.190.0200.00616.37
7.4.180.0200.00416.37
7.4.160.0130.01016.47
7.4.150.0190.00616.37
7.4.140.0160.00517.11
7.4.130.0160.00716.42
7.4.120.0120.00916.48
7.4.110.0120.01016.42
7.4.100.0140.00816.45
7.4.90.0170.00716.43
7.4.80.0200.00817.88
7.4.70.0160.01016.51
7.4.60.0270.01316.40
7.4.50.0110.01016.40
7.4.40.0130.00716.42
7.4.30.0230.00016.37
7.4.20.0140.01016.37
7.4.10.0220.00316.37
7.4.00.0140.00515.77
7.3.330.0110.00414.76
7.3.320.0130.00114.76
7.3.310.0090.00716.34
7.3.300.0130.00316.37
7.3.290.0130.01116.36
7.3.280.0090.01116.31
7.3.270.0190.00516.37
7.3.260.0110.00816.44
7.3.250.0210.00316.37
7.3.240.0100.01016.46
7.3.230.0150.00916.35
7.3.220.0250.00016.37
7.3.210.0110.01116.42
7.3.200.0130.00816.42
7.3.190.0160.00716.47
7.3.180.0210.00516.39
7.3.170.0150.00616.36
7.3.160.0190.00216.52
7.3.150.0190.00716.37
7.3.140.0200.00716.37
7.3.130.0230.00316.37
7.3.120.0140.00515.63
7.3.110.0120.00815.68
7.3.100.0080.01015.60
7.3.90.0130.00615.71
7.3.80.0190.00015.73
7.3.70.0140.00515.59
7.3.60.0100.00815.19
7.3.50.0090.00715.32
7.3.40.0110.00815.32
7.3.30.0130.00415.32
7.3.20.0130.00417.08
7.3.10.0120.00516.92
7.3.00.0070.00916.98
7.2.340.0220.00416.37
7.2.330.0160.00716.57
7.2.320.0190.00316.55
7.2.310.0130.01016.40
7.2.300.0150.00616.59
7.2.290.0110.00916.51
7.2.280.0190.00616.37
7.2.270.0210.00316.37
7.2.260.0170.00716.37
7.2.250.0220.00216.37
7.2.240.0140.00515.70
7.2.230.0160.00315.71
7.2.220.0150.00415.67
7.2.210.0120.00715.66
7.2.200.0140.00515.71
7.2.190.0130.00615.36
7.2.180.0150.00515.51
7.2.170.0150.00215.56
7.2.160.0090.00915.48
7.2.150.0160.00317.38
7.2.140.0090.00717.22
7.2.130.0130.00317.14
7.2.120.0110.00617.42
7.2.110.0070.00817.29
7.2.100.0100.00917.29
7.2.90.0090.00717.37
7.2.80.0130.00317.39
7.2.70.0090.00917.34
7.2.60.0130.00617.19
7.2.50.0090.00717.37
7.2.40.0070.01017.29
7.2.30.0130.00417.22
7.2.20.0090.00617.43
7.2.10.0120.00617.39
7.2.00.0140.00517.43
7.1.330.0100.00916.17
7.1.320.0140.00416.18
7.1.310.0110.00816.35
7.1.300.0060.00916.16
7.1.290.0150.00316.24
7.1.280.0090.00816.03
7.1.270.0090.00716.17
7.1.260.0080.00816.09
7.1.250.0070.01116.10
7.1.240.0140.00917.09
7.1.230.0150.00616.82
7.1.220.0150.00816.90
7.1.210.0170.00616.89
7.1.200.0170.00716.98
7.1.190.0240.00016.93
7.1.180.0180.00516.88
7.1.170.0160.00816.62
7.1.160.0220.00316.55
7.1.150.0280.00016.89
7.1.140.0180.00516.89
7.1.130.0220.00016.97
7.1.120.0110.01116.73
7.1.110.0190.00316.77
7.1.100.0160.00717.12
7.1.90.0200.00316.90
7.1.80.0150.00817.02
7.1.70.0170.00716.87
7.1.60.0220.00316.94
7.1.50.0190.00517.24
7.1.40.0290.00017.04
7.1.30.0210.00417.06
7.1.20.0180.00416.92
7.1.10.0150.00716.99
7.1.00.0150.00816.80

preferences:
30.75 ms | 403 KiB | 5 Q