3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results = [ ['name' => 'Benjoe', 'number' => '001'], ['name' => 'Benjoe', 'number' => '002'], ['name' => 'Benjoe', 'number' => '001'], ]; function compare($log1, $log2, $index1, $index2) { return $log1['name'] == $log2['name'] && $log1['number'] == $log2['number'] && $index1 != $index2; } foreach($results as $index1 => $log1) { foreach ($results as $index2 => $log2) { if (compare($log1, $log2, $index1, $index2)) { echo "Item {$index1} has a duplicate at index {$index2}!<br/>\n"; } } }

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.3.70.0100.01016.61
8.3.60.0040.01118.20
8.3.50.0120.00616.34
8.3.40.0150.00018.60
8.3.30.0110.00418.77
8.3.20.0060.00320.86
8.3.10.0080.00023.46
8.3.00.0090.00018.77
8.2.190.0070.01016.63
8.2.180.0120.00318.16
8.2.170.0110.00719.04
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00821.08
8.2.110.0030.00621.00
8.2.100.0150.00017.78
8.2.90.0060.00319.34
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0050.00318.00
8.2.20.0050.00318.18
8.2.10.0040.00419.36
8.2.00.0000.00819.28
8.1.280.0140.00725.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00020.96
8.1.230.0080.00322.11
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00917.00
8.1.180.0000.01118.10
8.1.170.0000.00818.39
8.1.160.0080.00318.85
8.1.150.0040.00418.88
8.1.140.0030.00518.95
8.1.130.0040.00420.31
8.1.120.0030.00517.47
8.1.110.0000.00717.43
8.1.100.0000.00717.36
8.1.90.0070.00017.43
8.1.80.0040.00417.36
8.1.70.0070.00017.32
8.1.60.0040.00717.61
8.1.50.0040.00417.48
8.1.40.0030.00617.52
8.1.30.0020.00517.69
8.1.20.0000.00817.58
8.1.10.0040.00417.48
8.1.00.0050.00217.38
8.0.300.0060.00318.77
8.0.290.0110.00016.63
8.0.280.0000.00718.31
8.0.270.0080.00018.00
8.0.260.0040.00420.07
8.0.250.0040.00416.99
8.0.240.0000.00717.02
8.0.230.0000.00716.94
8.0.220.0000.00716.89
8.0.210.0040.00416.89
8.0.200.0000.00716.96
8.0.190.0030.00316.86
8.0.180.0040.00416.82
8.0.170.0060.00616.79
8.0.160.0000.00716.89
8.0.150.0030.00316.79
8.0.140.0050.00216.81
8.0.130.0030.00313.29
8.0.120.0040.00416.77
8.0.110.0000.00716.93
8.0.100.0000.00716.79
8.0.90.0040.00416.76
8.0.80.0090.00916.89
8.0.70.0040.00416.82
8.0.60.0000.00716.94
8.0.50.0040.00416.74
8.0.30.0030.01416.86
8.0.20.0110.00816.97
8.0.10.0070.00017.07
8.0.00.0120.00616.55
7.4.330.0030.00316.71
7.4.320.0000.00616.49
7.4.300.0000.00916.58
7.4.290.0070.00016.60
7.4.280.0050.00316.35
7.4.270.0070.00016.61
7.4.260.0000.00513.22
7.4.250.0080.00016.55
7.4.240.0000.00816.37
7.4.230.0070.00016.71
7.4.220.0040.00316.56
7.4.210.0100.00716.54
7.4.200.0000.00816.54
7.4.130.0120.00716.51
7.4.120.0130.00316.64
7.4.110.0110.00716.51
7.4.100.0120.00916.50
7.4.90.0000.01716.60
7.4.80.0140.00519.39
7.4.70.0150.00816.25
7.4.60.0080.00816.31
7.4.50.0060.00616.47
7.4.40.0150.00316.61
7.4.20.0000.01516.46
7.4.10.0160.00016.60
7.4.00.0110.00416.39
7.3.330.0000.00716.33
7.3.320.0060.00013.09
7.3.310.0050.00216.41
7.3.300.0070.00016.41
7.3.290.0130.00516.36
7.3.280.0100.01116.36
7.3.260.0090.01316.38
7.3.240.0100.00716.54
7.3.230.0180.00016.55
7.3.210.0120.00616.52
7.3.200.0070.01016.54
7.3.190.0130.00916.30
7.3.180.0120.00416.42
7.3.170.0100.01016.59
7.3.160.0070.01016.54
7.3.140.0110.00516.59
7.3.130.0030.01316.37
7.3.120.0090.00616.37
7.3.110.0070.00716.47
7.3.100.0100.01016.55
7.3.90.0040.01116.50
7.3.80.0070.01016.59
7.3.70.0040.01116.35
7.3.60.0060.01516.40
7.3.50.0130.00616.31
7.3.40.0100.00716.41
7.3.30.0110.01216.42
7.3.20.0190.00716.32
7.3.10.0170.00716.41
7.3.00.0220.00316.49
7.2.330.0060.01216.55
7.2.320.0060.01316.70
7.2.310.0140.00316.76
7.2.300.0070.01116.66
7.2.290.0080.01216.64
7.2.270.0060.00916.79
7.2.260.0090.00616.50
7.2.250.0060.00916.44
7.2.240.0030.01316.33
7.2.230.0120.00916.69
7.2.220.0090.00916.76
7.2.210.0060.01916.48
7.2.200.0090.01216.62
7.2.190.0110.01116.61
7.2.180.0110.00716.62
7.2.170.0090.01516.57
7.2.160.0160.00916.52
7.2.150.0180.00916.65
7.2.140.0150.01216.75
7.2.130.0120.00616.57
7.2.120.0100.01016.65
7.2.110.0030.01416.68
7.2.100.0100.00716.58
7.2.90.0030.01416.59
7.2.80.0130.01316.69
7.2.70.0110.01916.50
7.2.60.0160.00316.72
7.2.50.0090.00916.62
7.2.40.0070.01016.68
7.2.30.0070.01116.71
7.2.20.0070.01116.79
7.2.10.0150.00316.59
7.2.00.0110.00616.66

preferences:
34.35 ms | 401 KiB | 5 Q