3v4l.org

run code in 500+ PHP versions simultaneously
<?php $sampleData = [ ['group' => 'g1', 'branch' => 'b1', 'unit' => 'null'], ['group' => 'g1', 'branch' => 'b1', 'unit' => 'u2'], ['group' => 'g2', 'branch' => 'null', 'unit' => 'u3'], ['group' => 'g2', 'branch' => 'b6', 'unit' => 'u4'], ['group' => 'g3', 'branch' => 'b7', 'unit' => 'u5'], ]; $groups = []; foreach($sampleData as $row){ $groups[$row['group']][$row['branch']][] = $row['unit']; } var_dump($groups);

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.0110.00819.38
8.5.20.0110.00819.37
8.5.10.0100.00819.99
8.5.00.0130.00819.75
8.4.180.0140.01019.64
8.4.170.0120.00923.77
8.4.160.0150.00725.03
8.4.150.0070.00616.81
8.4.140.0110.01017.64
8.4.130.0160.00417.88
8.4.120.0140.00620.81
8.4.110.0110.00920.38
8.4.100.0130.00617.90
8.4.90.0100.01017.76
8.4.80.0110.00820.93
8.4.70.0110.00617.67
8.4.60.0110.01217.69
8.4.50.0040.00519.58
8.4.40.0130.00619.46
8.4.30.0150.00618.65
8.4.20.0140.00719.74
8.4.10.0160.00023.62
8.3.300.0080.01220.75
8.3.290.0090.01020.62
8.3.280.0150.00518.12
8.3.270.0100.00916.68
8.3.260.0040.00516.54
8.3.250.0130.00618.97
8.3.240.0120.00716.78
8.3.230.0110.00516.59
8.3.220.0090.01017.33
8.3.210.0080.00316.54
8.3.200.0120.00618.93
8.3.190.0130.00716.66
8.3.180.0120.00718.45
8.3.170.0090.00919.24
8.3.160.0180.00016.50
8.3.150.0110.00718.94
8.3.140.0100.01017.03
8.3.130.0030.00618.48
8.3.120.0090.00620.56
8.3.110.0070.00318.29
8.3.100.0100.00016.65
8.3.90.0030.01626.77
8.3.80.0040.00818.54
8.3.70.0110.00716.63
8.3.60.0140.00416.63
8.3.50.0000.01420.34
8.3.40.0120.00320.21
8.3.30.0120.00318.71
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.300.0110.00820.54
8.2.290.0140.00520.69
8.2.280.0090.00618.40
8.2.270.0090.00919.18
8.2.260.0150.00318.70
8.2.250.0100.00318.73
8.2.240.0030.00516.89
8.2.230.0060.00320.94
8.2.220.0040.00724.06
8.2.210.0090.00926.77
8.2.200.0030.00616.50
8.2.190.0080.00816.58
8.2.180.0040.01125.92
8.2.170.0120.00319.09
8.2.160.0110.00422.96
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.95
8.2.110.0030.00622.08
8.2.100.0040.00817.91
8.2.90.0040.00418.28
8.2.80.0030.00519.30
8.2.70.0060.00317.63
8.2.60.0030.00618.04
8.2.50.0090.00018.07
8.2.40.0000.00821.04
8.2.30.0040.00418.12
8.2.20.0040.00419.30
8.2.10.0040.00418.07
8.2.00.0060.00317.66
8.1.340.0110.00917.66
8.1.330.0090.01016.67
8.1.320.0120.00616.13
8.1.310.0040.00416.73
8.1.300.0080.00019.74
8.1.290.0090.00030.84
8.1.280.0060.00825.92
8.1.270.0090.00024.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.91
8.1.230.0090.00320.97
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00818.57
8.1.160.0000.00718.90
8.1.150.0040.00418.68
8.1.140.0020.00517.36
8.1.130.0110.00117.45
8.1.120.0150.00017.46
8.1.110.0110.00517.52
8.1.100.0110.00417.52
8.1.90.0120.00217.43
8.1.80.0060.00817.50
8.1.70.0110.00517.51
8.1.60.0100.00417.56
8.1.50.0100.00417.59
8.1.40.0110.00017.64
8.1.30.0100.00517.65
8.1.20.0130.00217.63
8.1.10.0080.00617.52
8.1.00.0040.01017.34
8.0.300.0020.00520.01
8.0.290.0050.00316.75
8.0.280.0030.00518.50
8.0.270.0000.00717.26
8.0.260.0090.00716.87
8.0.250.0040.00616.89
8.0.240.0100.00016.89
8.0.230.0110.00016.89
8.0.220.0020.01116.87
8.0.210.0040.01316.87
8.0.200.0120.00216.87
8.0.190.0120.00416.87
8.0.180.0070.00716.87
8.0.170.0120.00416.87
8.0.160.0070.00616.87
8.0.150.0090.00316.87
8.0.140.0090.00216.87
8.0.130.0080.00716.87
8.0.120.0120.00316.87
8.0.110.0080.00616.87
8.0.100.0110.00316.87
8.0.90.0080.00616.87
8.0.80.0080.00616.87
8.0.70.0130.00016.87
8.0.60.0100.00316.87
8.0.50.0040.00916.87
8.0.30.0060.00816.87
8.0.20.0050.00916.88
8.0.10.0080.00416.93

preferences:
44.21 ms | 1164 KiB | 5 Q