3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userdb=Array ( 0 => Array ( "uid"=> '100', "name" => 'Sandra Shush', "url"=> 'urlof100' ), 1 => Array ( "uid"=> '5465', "name" => 'Sandra Shush', "url"=> 'urlof100' ), 2 => Array ( "uid"=> '100', "name" => 'Sandra Shush', "url"=> 'urlof100' ), 3 => Array ( "uid"=> '5465', "name" => 'Sandra Shush', "url"=> 'urlof100' ), ); // Get all uids to an flat array $uid = array_column($userdb, "uid"); // Loop the unique uids and find all matching uids and place them in array Foreach(array_unique($uid) as $id){ $new[] = array_intersect_key($userdb, array_intersect($uid, [$id])); } Var_dump($new);

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.0080.01021.12
8.5.20.0120.00919.52
8.5.10.0120.00616.49
8.5.00.0150.00920.07
8.4.180.0120.00920.48
8.4.170.0110.01124.00
8.4.160.0110.00823.79
8.4.150.0070.00617.76
8.4.140.0140.00917.52
8.4.130.0100.01017.96
8.4.120.0120.00822.17
8.4.110.0110.00922.61
8.4.100.0130.01217.65
8.4.90.0120.00720.52
8.4.80.0030.00618.80
8.4.70.0130.00819.17
8.4.60.0110.01018.93
8.4.50.0100.01020.41
8.4.40.0070.01419.49
8.4.30.0160.00317.77
8.4.20.0000.00919.41
8.4.10.0060.00318.65
8.3.300.0130.00820.78
8.3.290.0090.01020.75
8.3.280.0110.01118.34
8.3.270.0110.00816.52
8.3.260.0130.00716.49
8.3.250.0120.00619.23
8.3.240.0110.00616.55
8.3.230.0110.00816.81
8.3.220.0040.00319.05
8.3.210.0020.00618.43
8.3.200.0050.00516.65
8.3.190.0090.00117.06
8.3.180.0020.00618.75
8.3.170.0070.00719.06
8.3.160.0090.00917.31
8.3.150.0100.01017.22
8.3.140.0100.00716.67
8.3.130.0080.00018.59
8.3.120.0030.00620.77
8.3.110.0030.00620.94
8.3.100.0080.00020.10
8.3.90.0060.00326.77
8.3.80.0040.00819.36
8.3.70.0130.00316.63
8.3.60.0150.00418.31
8.3.50.0080.01017.54
8.3.40.0040.01118.89
8.3.30.0120.00918.64
8.3.20.0080.00019.05
8.3.10.0040.00423.48
8.3.00.0040.00423.65
8.2.300.0130.00820.35
8.2.290.0140.00520.29
8.2.280.0140.00718.30
8.2.270.0110.00717.34
8.2.260.0040.00419.04
8.2.250.0060.00318.46
8.2.240.0060.00317.37
8.2.230.0000.00922.58
8.2.220.0060.00324.06
8.2.210.0050.00326.77
8.2.200.0060.00318.88
8.2.190.0090.00618.41
8.2.180.0140.00718.16
8.2.170.0060.01222.96
8.2.160.0110.00419.21
8.2.150.0070.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00720.98
8.2.110.0090.00019.52
8.2.100.0030.00917.91
8.2.90.0080.00018.16
8.2.80.0040.00418.16
8.2.70.0000.00818.05
8.2.60.0000.00818.16
8.2.50.0030.00718.10
8.2.40.0090.00021.26
8.2.30.0000.00819.38
8.2.20.0050.00218.24
8.2.10.0030.00519.44
8.2.00.0030.00419.50
8.1.340.0120.00821.77
8.1.330.0110.00816.90
8.1.320.0140.00817.87
8.1.310.0030.00816.84
8.1.300.0040.01516.58
8.1.290.0000.01230.84
8.1.280.0140.00725.92
8.1.270.0040.00422.02
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0000.00919.28
8.1.230.0040.00720.87
8.1.220.0040.00417.74
8.1.210.0080.00018.93
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0080.00018.59
8.1.160.0000.00718.77
8.1.150.0040.00418.89
8.1.140.0000.00717.87
8.1.130.0040.00417.41
8.1.120.0030.00517.38
8.1.110.0040.00417.50
8.1.100.0030.00317.38
8.1.90.0000.00817.36
8.1.80.0050.00317.39
8.1.70.0070.00017.33
8.1.60.0040.00417.58
8.1.50.0040.00417.53
8.1.40.0030.00617.44
8.1.30.0040.00817.59
8.1.20.0070.00017.66
8.1.10.0040.00417.44
8.1.00.0050.00217.39
8.0.300.0050.00519.62
8.0.290.0080.00016.63
8.0.280.0070.00018.45
8.0.270.0040.00417.26
8.0.260.0000.00716.82
8.0.250.0030.00316.87
8.0.240.0080.00016.84
8.0.230.0000.00716.82
8.0.220.0000.00716.96
8.0.210.0040.00416.88
8.0.200.0070.00016.92
8.0.190.0040.00416.89
8.0.180.0040.00416.89
8.0.170.0050.00316.91
8.0.160.0040.00416.79
8.0.150.0000.00716.86
8.0.140.0040.00416.78
8.0.130.0030.00313.38
8.0.120.0000.00816.74
8.0.110.0050.00216.77
8.0.100.0000.00716.87
8.0.90.0040.00416.91
8.0.80.0050.01416.85
8.0.70.0040.00416.93
8.0.60.0070.00016.81
8.0.50.0040.00416.68
8.0.30.0110.00917.25
8.0.20.0110.00917.40
8.0.10.0070.00017.01
8.0.00.0120.00617.04
7.4.330.0020.00215.55
7.4.320.0070.00016.46
7.4.300.0030.00316.55
7.4.290.0060.00316.54
7.4.280.0040.00416.59
7.4.270.0030.00616.52
7.4.260.0030.00316.58
7.4.250.0030.00316.55
7.4.240.0030.00316.53
7.4.230.0030.00316.39
7.4.220.0000.00716.60
7.4.210.0080.00916.50
7.4.200.0040.00416.40
7.4.160.0100.00816.44
7.4.140.0080.01217.86
7.4.130.0180.00716.52
7.4.120.0090.01016.58
7.4.110.0100.00716.66
7.4.100.0140.00316.47
7.4.90.0110.00716.63
7.4.80.0000.01919.39
7.4.70.0060.01116.52
7.4.60.0100.00616.55
7.4.50.0110.00716.37
7.4.40.0090.00916.59
7.4.00.0030.01314.88
7.3.330.0000.00513.00
7.3.320.0000.00613.02
7.3.310.0060.00016.20
7.3.300.0000.00716.27
7.3.290.0030.00316.30
7.3.280.0050.01116.29
7.3.260.0100.00816.45
7.3.240.0120.00816.38
7.3.230.0110.00716.49
7.3.210.0120.00616.40
7.3.200.0090.01516.59
7.3.190.0060.01016.46
7.3.180.0060.01016.63
7.3.170.0040.01416.60
7.3.160.0060.01216.58
7.3.10.0090.00616.66
7.3.00.0130.00016.44
7.2.330.0120.01216.51
7.2.320.0100.01316.49
7.2.310.0090.00916.75
7.2.300.0060.01216.79
7.2.290.0090.00916.49
7.2.130.0040.00717.00
7.2.120.0030.01016.75
7.2.110.0000.01416.98
7.2.100.0090.00317.14
7.2.90.0040.00717.08
7.2.80.0330.01115.81
7.2.70.0410.01015.83
7.2.60.0350.01015.80
7.2.50.0420.00615.76
7.2.40.0530.00815.64
7.2.30.0550.01315.95
7.2.20.0590.01015.73
7.2.10.0440.01115.76
7.2.00.0580.01015.83
7.1.250.0000.01115.71
7.1.200.0030.01015.84
7.1.190.0760.00613.74
7.1.180.0800.00313.94
7.1.170.0840.01413.55
7.1.160.0720.01413.72
7.1.150.1110.00313.65
7.1.140.0880.00313.70
7.1.130.1460.00613.27
7.1.120.1250.01313.63
7.1.110.1280.00913.84
7.1.100.0690.01013.60
7.1.90.1610.01013.93
7.1.80.1620.01213.96
7.1.70.1070.00913.82
7.1.60.1130.00331.82
7.1.50.1270.00931.64
7.1.40.2510.00331.91
7.1.30.1600.01031.56
7.1.20.1850.01031.62
7.1.10.1320.00713.69
7.1.00.1030.01013.47

preferences:
119.56 ms | 1618 KiB | 5 Q