3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( '2021-07-07' => array ( 0 => array ( 'id' => 5435435, 'homeID' => 8754, 'match_url' => '/usa/reading-united-ac-vs-ocean-city-noreasters-fc-h2h-stats#1229873', 'competition_id' => 5808, 'matches_completed_minimum' => 12, ), 1 => array ( 'id' => 1229873, 'homeID' => 8754, 'match_url' => '/usa/reading-united-ac-vs-ocean-city-noreasters-fc-h2h-stats#1229873', 'competition_id' => 5808, 'matches_completed_minimum' => 12, ), ), '2021-07-09' => array ( 0 => array ( 'id' => 3243234, 'homeID' => 8754, 'match_url' => '/usa/reading-united-ac-vs-ocean-city-noreasters-fc-h2h-stats#1229873', 'competition_id' => 5808, 'matches_completed_minimum' => 12, ), 1 => array ( 'id' => 1229873, 'homeID' => 8754, 'match_url' => '/usa/reading-united-ac-vs-ocean-city-noreasters-fc-h2h-stats#1229873', 'competition_id' => 5808, 'matches_completed_minimum' => 12, ), ), ); $seen = []; foreach(array_keys($data) as $i) { foreach(array_keys($data[$i]) as $j) { $id = $data[$i][$j]['id']; if( in_array($id, $seen) ) { unset($data[$i][$j]); } else { $seen[] = $id; } } } var_dump($data, $seen);

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.00.0130.01220.20
8.4.150.0030.00014.05
8.4.140.0220.00317.41
8.4.130.0070.01018.37
8.4.120.0120.00723.98
8.4.110.0060.00320.56
8.4.100.0120.00918.65
8.4.90.0100.00918.69
8.4.80.0060.00617.76
8.4.70.0120.01117.80
8.4.60.0060.00318.93
8.4.50.0120.00817.79
8.4.40.0100.01119.18
8.4.30.0200.00020.09
8.4.20.0100.01018.66
8.4.10.0130.00319.46
8.3.280.0110.00918.43
8.3.270.0100.01016.58
8.3.260.0050.00416.55
8.3.250.0090.00919.11
8.3.240.0030.00717.28
8.3.230.0100.00916.50
8.3.220.0050.00318.84
8.3.210.0120.00718.66
8.3.200.0060.00316.48
8.3.190.0140.00616.79
8.3.180.0060.00518.50
8.3.170.0090.00016.43
8.3.160.0070.00316.59
8.3.150.0120.00617.29
8.3.140.0070.00716.54
8.3.130.0170.00316.34
8.3.120.0040.00420.71
8.3.110.0040.01520.94
8.3.100.0030.00524.06
8.3.90.0030.00626.77
8.3.80.0110.00019.36
8.3.70.0070.01516.75
8.3.60.0090.00916.50
8.3.50.0090.00618.01
8.3.40.0120.00318.67
8.3.30.0180.00018.79
8.3.20.0040.00424.18
8.3.10.0000.00924.66
8.3.00.0040.00426.16
8.2.290.0070.01220.38
8.2.280.0130.00720.35
8.2.270.0170.00416.54
8.2.260.0140.00417.11
8.2.250.0070.00416.83
8.2.240.0090.00619.05
8.2.230.0090.00922.58
8.2.220.0050.00337.54
8.2.210.0000.01426.77
8.2.200.0030.00618.88
8.2.190.0160.00316.58
8.2.180.0060.01225.92
8.2.170.0090.00618.95
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0100.00017.80
8.2.110.0100.00020.35
8.2.100.0060.00319.32
8.1.330.0110.00822.04
8.1.320.0100.00916.37
8.1.310.0040.01216.56
8.1.300.0160.00016.20
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00318.91
8.1.230.0030.00618.61
8.0.80.0110.00616.87

preferences:
90.52 ms | 403 KiB | 5 Q