3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = [array ( 77 => Array ( 'Bold Condensed', 'Bold Condensed 2', 'Bold Condensed 3' ) ), array ( 77 => array ( 'Bold Condensed' ), 136 => array ( 'Regular' ) ), array ( 77 => array ( 'Bold Condensed (1, 2, 3)' ), 168 => array ( 'Regular', 'Bold' ) )]; $result = []; foreach($d as $subs){ foreach($subs as $id => $values){ $result[ $id ] = array_merge($result[ $id ] ?? [], $values); } } $result = array_map(fn($v) => array_unique($v), $result); print_r($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.0050.00218.48
8.5.10.0130.00616.77
8.5.00.0130.00720.24
8.4.170.0140.00921.95
8.4.160.0150.00723.15
8.4.150.0020.00014.05
8.4.140.0130.00917.71
8.4.130.0050.00717.45
8.4.120.0100.00920.63
8.4.110.0050.00618.68
8.4.100.0090.00917.88
8.4.90.0070.00717.83
8.4.80.0040.00517.80
8.4.70.0060.00217.60
8.4.60.0040.00417.78
8.4.50.0050.00319.45
8.4.40.0160.00317.43
8.4.30.0070.01120.43
8.4.20.0100.01019.78
8.4.10.0050.00319.60
8.3.290.0150.00720.66
8.3.280.0110.00918.30
8.3.270.0100.00916.75
8.3.260.0040.00416.68
8.3.250.0110.00819.06
8.3.240.0050.00416.57
8.3.230.0110.00916.55
8.3.220.0050.00517.23
8.3.210.0090.01016.74
8.3.200.0110.00916.54
8.3.190.0110.00416.57
8.3.180.0080.00618.80
8.3.170.0140.00417.04
8.3.160.0120.00618.14
8.3.150.0190.00020.42
8.3.140.0050.00318.74
8.3.130.0060.00318.34
8.3.120.0060.00320.90
8.3.110.0040.00416.41
8.3.100.0090.00016.79
8.3.90.0070.00026.77
8.3.80.0030.00618.43
8.3.70.0060.00916.63
8.3.60.0150.00016.38
8.3.50.0110.00416.55
8.3.40.0060.00923.80
8.3.30.0140.00318.97
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.300.0110.01018.01
8.2.290.0090.01020.51
8.2.280.0070.00417.03
8.2.270.0130.00617.11
8.2.260.0040.00419.26
8.2.250.0030.00516.60
8.2.240.0050.00317.25
8.2.230.0120.00620.94
8.2.220.0030.00524.06
8.2.210.0110.00726.77
8.2.200.0070.00318.16
8.2.190.0070.01018.54
8.2.180.0060.01216.50
8.2.170.0140.00722.96
8.2.160.0160.00322.96
8.2.150.0090.00025.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00021.09
8.2.110.0000.01020.43
8.2.100.0090.00818.44
8.2.90.0180.00319.38
8.2.80.0050.01118.44
8.2.70.0140.00218.44
8.2.60.0130.00318.44
8.2.50.0070.01118.44
8.2.40.0090.00418.44
8.2.30.0130.00418.44
8.2.20.0070.00718.44
8.2.10.0130.00618.44
8.2.00.0160.00418.44
8.1.340.0110.00817.78
8.1.330.0120.00616.93
8.1.320.0120.00716.30
8.1.310.0090.00918.68
8.1.300.0030.00618.51
8.1.290.0070.00330.84
8.1.280.0140.00425.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0000.00923.96
8.1.230.0110.00819.26
8.1.220.0180.00018.44
8.1.210.0170.00318.44
8.1.200.0180.00318.44
8.1.190.0170.00618.44
8.1.180.0130.00718.44
8.1.170.0090.00618.96
8.1.160.0140.00418.44
8.1.150.0090.00818.98
8.1.140.0160.00318.44
8.1.130.0090.00619.00
8.1.120.0110.00318.44
8.1.110.0070.01318.44
8.1.100.0110.00318.44
8.1.90.0090.00618.44
8.1.80.0040.00818.44
8.1.70.0120.00318.44
8.1.60.0140.00018.44
8.1.50.0100.00319.54
8.1.40.0140.00018.44
8.1.30.0070.00718.44
8.1.20.0070.00718.44
8.1.10.0090.00918.44
8.1.00.0100.00318.44
8.0.300.0120.00020.18
8.0.290.0080.00618.44
8.0.280.0110.00318.44
8.0.270.0080.00418.44
8.0.260.0130.00318.44
8.0.250.0230.00018.44
8.0.240.0180.00718.44
8.0.230.0140.01018.44
8.0.220.0190.00418.44
8.0.210.0150.00618.44
8.0.200.0250.00018.44
8.0.190.0190.00518.44
8.0.180.0160.00818.44
8.0.170.0200.00418.44
8.0.160.0150.00618.44
8.0.150.0160.00518.44
8.0.140.0160.00818.44
8.0.130.0120.00918.44
8.0.120.0090.01318.44
8.0.110.0220.00018.44
8.0.100.0210.00018.44
8.0.90.0180.00518.44
8.0.80.0150.00618.44
8.0.70.0180.00418.44
8.0.60.0180.00518.44
8.0.50.0190.00818.44
8.0.30.0190.00318.44
8.0.20.0150.00618.44
8.0.10.0200.00318.44

preferences:
43.45 ms | 403 KiB | 5 Q