3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [[ "continent" => "Europa", "country" => "France", "capital" => "Paris", ],[ "continent" => "Europa", "country" => "Spain", "capital" => "Madrid", ],[ "continent" => "Asia", "country" => "Russia", "capital" => "Moscow", ]]; $groupByContinent = function(array $list) { return array_reduce($list, function($grouped, $item) { $grouped[$item['continent']][] = $item; return $grouped; }, []); }; $groupedByContinent = $groupByContinent($data); var_dump($groupedByContinent);

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.20.0100.01018.89
8.4.10.0120.00617.55
8.3.150.0130.00616.38
8.3.140.0120.00619.17
8.3.130.0130.00618.50
8.3.120.0130.00618.98
8.3.110.0060.01016.75
8.3.100.0060.01316.61
8.3.90.0000.00826.77
8.3.80.0000.01018.56
8.3.70.0120.00616.63
8.3.60.0070.01418.31
8.3.50.0100.00819.26
8.3.40.0100.00718.60
8.3.30.0110.00418.82
8.3.20.0080.00020.90
8.3.10.0040.00423.61
8.3.00.0000.00822.39
8.2.270.0160.00318.89
8.2.260.0060.00318.19
8.2.250.0080.00016.51
8.2.240.0090.00018.93
8.2.230.0060.00620.94
8.2.220.0060.00316.52
8.2.210.0000.00726.77
8.2.200.0100.00018.16
8.2.190.0090.00616.63
8.2.180.0120.00316.61
8.2.170.0120.00322.96
8.2.160.0060.00922.96
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.87
8.2.110.0080.00820.54
8.2.100.0040.00817.91
8.2.90.0040.00417.84
8.2.80.0050.00317.97
8.2.70.0030.00617.93
8.2.60.0060.00318.28
8.2.50.0160.00018.10
8.2.40.0050.00519.27
8.2.30.0040.00421.19
8.2.20.0040.00418.09
8.2.10.0000.00721.10
8.2.00.0040.00418.00
8.1.310.0090.00618.57
8.1.300.0060.00319.84
8.1.290.0060.00318.88
8.1.280.0070.01125.92
8.1.270.0000.00923.82
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00417.48
8.1.230.0040.00822.73
8.1.220.0000.00817.74
8.1.210.0000.00818.79
8.1.200.0090.00017.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0040.00418.84
8.1.150.0070.00018.89
8.1.140.0070.00018.90
8.1.130.0020.00520.25
8.1.120.0050.00317.41
8.1.110.0050.00217.39
8.1.100.0050.00217.35
8.1.90.0040.00417.45
8.1.80.0080.00017.51
8.1.70.0030.00517.32
8.1.60.0080.00017.59
8.1.50.0040.00417.46
8.1.40.0040.00417.41
8.1.30.0030.00617.50
8.1.20.0000.00817.65
8.1.10.0080.00017.54
8.1.00.0040.00417.43
8.0.300.0000.00720.09
8.0.290.0040.00416.63
8.0.280.0040.00418.32
8.0.270.0070.00016.66
8.0.260.0060.00018.26
8.0.250.0000.00716.81
8.0.240.0050.00316.78
8.0.230.0000.00716.83
8.0.220.0030.00316.82
8.0.210.0000.00716.79
8.0.200.0000.00716.87
8.0.190.0030.00616.94
8.0.180.0050.00316.81
8.0.170.0080.00016.95
8.0.160.0050.00317.01
8.0.150.0000.00816.81
8.0.140.0030.00316.89
8.0.130.0000.00513.32
8.0.120.0040.00416.88
8.0.110.0050.00216.89
8.0.100.0000.00816.79
8.0.90.0050.00216.78
8.0.80.0060.00916.91
8.0.70.0000.00716.69
8.0.60.0070.00016.98
8.0.50.0070.00016.85
8.0.30.0170.00017.09
8.0.20.0100.01017.09
8.0.10.0040.00416.96
8.0.00.0110.00816.60
7.4.330.0050.00016.89
7.4.320.0030.00316.63
7.4.300.0000.00616.41
7.4.290.0030.00316.60
7.4.280.0030.00516.58
7.4.270.0040.00416.53
7.4.260.0000.00816.63
7.4.250.0040.00416.45
7.4.240.0000.00716.60
7.4.230.0070.00016.41
7.4.220.0040.00416.71
7.4.210.0110.00716.58
7.4.200.0030.00316.42
7.4.160.0140.00616.45
7.4.130.0110.00716.68
7.4.120.0100.00816.56
7.4.110.0060.00916.42
7.4.100.0100.01316.52
7.4.90.0140.00716.54
7.4.80.0030.01319.39
7.4.70.0140.00616.50
7.4.60.0000.01616.43
7.4.50.0130.00316.45
7.4.40.0130.01016.50
7.4.00.0000.01414.69
7.3.330.0000.00513.30
7.3.320.0000.00613.32
7.3.310.0040.00416.43
7.3.300.0070.00016.39
7.3.290.0000.00716.25
7.3.280.0080.00916.32
7.3.260.0090.01316.37
7.3.240.0110.00616.56
7.3.230.0140.00316.45
7.3.210.0030.01316.43
7.3.200.0060.01216.49
7.3.190.0110.00716.57
7.3.180.0130.01016.42
7.3.170.0140.00716.42
7.3.160.0070.01516.43
7.3.40.0090.01214.70
7.3.30.0130.01014.49
7.3.20.0160.00514.76
7.3.10.0180.00814.80
7.3.00.0150.00914.57
7.2.330.0150.00316.54
7.2.320.0110.00716.61
7.2.310.0100.00716.68
7.2.300.0100.00716.38
7.2.290.0160.00616.54
7.2.170.0120.00315.11
7.2.160.0120.00814.90
7.2.150.0080.00814.87
7.2.140.0120.01215.00
7.2.130.0090.00915.06
7.2.120.0100.01314.80
7.2.110.0130.00914.96
7.2.100.0110.01315.07
7.2.90.0110.00815.06
7.2.80.0130.01015.24
7.2.70.0110.00715.01
7.2.60.0040.01814.98
7.2.50.0090.01214.92
7.2.40.0140.00815.18
7.2.30.0070.01615.23
7.2.20.1060.00315.00
7.2.10.0120.00915.08
7.2.00.0170.00715.20
7.1.280.0130.01614.04
7.1.270.0080.00514.00
7.1.260.0060.01013.91
7.1.250.0040.01113.83

preferences:
28.35 ms | 403 KiB | 5 Q