3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [ [ 77 => ['Bold Condensed', 'Bold Condensed 2', 'Bold Condensed 3'], ], [ 77 => ['Bold Condensed'], 136 => ['Regular'], ], [ 77 => ['Bold Condensed (1, 2, 3)'], 168 => ['Regular', 'Bold'], ] ]; $result = []; foreach ($arrays as $set) { foreach ($set as $id => $row) { foreach ($row as $value) { if (!isset($lookup[$id][$value])) { $lookup[$id][$value] = $value; $result[$id][] = $value; } } } } var_export($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.20.0100.00718.74
8.5.10.0110.00216.39
8.5.00.0130.01019.75
8.4.170.0130.01021.90
8.4.160.0110.01120.71
8.4.150.0030.00014.05
8.4.140.0190.01017.52
8.4.130.0060.00318.47
8.4.120.0120.00924.41
8.4.110.0120.00818.75
8.4.100.0130.00817.76
8.4.90.0100.00920.56
8.4.80.0130.00719.11
8.4.70.0120.00718.83
8.4.60.0140.00620.67
8.4.50.0100.00619.56
8.4.40.0130.00617.77
8.4.30.0030.00620.34
8.4.20.0140.00717.79
8.4.10.0030.00619.39
8.3.290.0100.01020.82
8.3.280.0100.01018.37
8.3.270.0140.00516.95
8.3.260.0100.00916.56
8.3.250.0100.00819.01
8.3.240.0050.00417.22
8.3.230.0130.00616.56
8.3.220.0110.00519.23
8.3.210.0100.01018.34
8.3.200.0040.00516.67
8.3.190.0090.00716.48
8.3.180.0110.00818.99
8.3.170.0060.01217.24
8.3.160.0040.01118.17
8.3.150.0040.00420.73
8.3.140.0050.00320.89
8.3.130.0030.00518.38
8.3.120.0060.00320.79
8.3.110.0080.00020.94
8.3.100.0060.00324.06
8.3.90.0030.00626.77
8.3.80.0030.00717.97
8.3.70.0150.00318.43
8.3.60.0070.01416.63
8.3.50.0110.00716.44
8.3.40.0100.01021.90
8.3.30.0090.00619.01
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0110.00917.97
8.2.290.0050.00617.37
8.2.280.0080.00218.43
8.2.270.0110.00717.31
8.2.260.0040.00419.09
8.2.250.0100.01018.60
8.2.240.0000.00817.38
8.2.230.0060.00322.58
8.2.220.0090.00337.54
8.2.210.0000.00826.77
8.2.200.0090.00016.25
8.2.190.0180.00416.75
8.2.180.0180.00416.75
8.2.170.0090.00919.08
8.2.160.0070.00722.96
8.2.150.0100.00725.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.93
8.2.110.0030.00621.00
8.2.100.0350.00018.44
8.2.90.0210.00918.44
8.2.80.0220.00618.44
8.2.70.0220.00718.44
8.2.60.0270.00318.44
8.2.50.0310.00018.44
8.2.40.0240.00518.44
8.2.30.0220.00518.44
8.2.20.0240.00318.44
8.2.10.0270.00018.44
8.2.00.0230.00318.44
8.1.340.0130.01017.59
8.1.330.0130.00515.95
8.1.320.0120.00616.33
8.1.310.0150.00318.61
8.1.300.0120.00615.94
8.1.290.0000.00930.84
8.1.280.0140.00425.92
8.1.270.0080.00024.66
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00321.42
8.1.230.0220.01018.44
8.1.220.0260.00618.44
8.1.210.0310.00018.44
8.1.200.0360.00418.44
8.1.190.0150.01518.44
8.1.180.0260.00418.44
8.1.170.0260.00318.44
8.1.160.0320.00018.44
8.1.150.0280.00318.44
8.1.140.0210.00718.44
8.1.130.0230.00818.44
8.1.120.0240.00718.44
8.1.110.0250.00418.44
8.1.100.0270.00018.44
8.1.90.0200.00618.44
8.1.80.0210.00618.44
8.1.70.0260.00018.44
8.1.60.0270.00018.44
8.1.50.0180.00718.44
8.1.40.0170.00818.44
8.1.30.0270.00018.44
8.1.20.0210.00718.44
8.1.10.0280.00018.44
8.1.00.0230.00018.44
8.0.300.0150.00618.44
8.0.290.0210.00818.44
8.0.280.0230.00818.44
8.0.270.0230.00718.44
8.0.260.0220.00418.44
8.0.250.0200.00618.44
8.0.240.0220.00618.44
8.0.230.0200.00718.44
8.0.220.0190.01018.44
8.0.210.0200.00618.44
8.0.200.0280.00018.44
8.0.190.0200.01018.44
8.0.180.0220.00618.44
8.0.170.0210.00718.44
8.0.160.0270.00018.44
8.0.150.0140.00918.44
8.0.140.0280.00018.44
8.0.130.0190.00418.44
8.0.120.0240.00418.44
8.0.110.0260.00018.44
8.0.100.0240.00518.44
8.0.90.0180.00918.44
8.0.80.0230.00018.44
8.0.70.0190.00918.44
8.0.60.0280.00018.44
8.0.50.0250.00718.44
8.0.30.0260.00318.44
8.0.20.0270.00018.44
8.0.10.0260.00018.44

preferences:
108.82 ms | 403 KiB | 5 Q