3v4l.org

run code in 300+ PHP versions simultaneously
<?php $approval_users =[ ['user_id'=>1, 'username'=>'saadat'], ['user_id'=>2, 'username'=>'aamir'], ]; $approved_users = [ ['user_id'=>1, 'username'=>'saadat'], ['user_id'=>3, 'username'=>'demo'], ]; $approval_users_ids = array_column($approval_users, 'user_id'); $results = []; foreach($approved_users as $user){ if(!in_array($user['user_id'],$approval_users_ids)) $results[]=$user; } print_r($results);

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.10.0070.00920.04
8.5.00.0110.01219.75
8.4.160.0130.01323.88
8.4.150.0070.00516.83
8.4.140.0100.01017.70
8.4.130.0140.00717.49
8.4.120.0120.00822.59
8.4.110.0120.00818.93
8.4.100.0040.00417.46
8.4.90.0110.00618.63
8.4.80.0110.00917.69
8.4.70.0110.00817.81
8.4.60.0120.00918.90
8.4.50.0110.01119.55
8.4.40.0130.00723.70
8.4.30.0100.01022.53
8.4.20.0100.01017.38
8.4.10.0130.00319.38
8.3.280.0030.00014.05
8.3.270.0140.00916.45
8.3.260.0150.00516.63
8.3.250.0110.00519.05
8.3.240.0090.01016.89
8.3.230.0140.00516.70
8.3.220.0080.00817.23
8.3.210.0140.00516.52
8.3.200.0050.00416.70
8.3.190.0110.00617.28
8.3.180.0130.00616.72
8.3.170.0080.00019.07
8.3.160.0030.00618.54
8.3.150.0180.00019.10
8.3.140.0090.00916.54
8.3.130.0090.00018.43
8.3.120.0110.00718.93
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0030.01226.77
8.3.80.0090.00317.97
8.3.70.0070.01416.48
8.3.60.0070.01118.30
8.3.50.0120.00622.98
8.3.40.0070.01118.87
8.3.30.0160.00618.81
8.3.20.0080.00020.34
8.3.10.0040.00423.65
8.3.00.0080.00019.97
8.2.290.0130.00720.23
8.2.280.0030.00618.34
8.2.270.0190.00017.22
8.2.260.0080.01116.39
8.2.250.0120.00316.71
8.2.240.0080.00418.80
8.2.230.0030.00722.58
8.2.220.0100.00037.54
8.2.210.0040.00426.77
8.2.200.0110.00018.41
8.2.190.0060.00916.58
8.2.180.0100.00716.50
8.2.170.0070.00722.96
8.2.160.0100.01022.08
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00822.20
8.2.120.0040.00426.35
8.2.110.0060.00320.47
8.2.100.0080.00417.97
8.2.90.0050.00317.75
8.2.80.0060.00318.79
8.2.70.0100.00017.63
8.2.60.0000.01217.38
8.2.50.0080.00017.63
8.2.40.0080.00017.75
8.2.30.0080.00018.06
8.2.20.0040.00417.73
8.2.10.0040.00418.08
8.2.00.0040.00418.02
8.1.330.0120.00822.12
8.1.320.0070.01416.06
8.1.310.0100.00716.67
8.1.300.0110.00720.05
8.1.290.0070.00318.88
8.1.280.0110.01125.92
8.1.270.0000.00723.97
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00723.68
8.1.230.0070.00322.25
8.1.220.0050.00318.69
8.1.210.0030.00518.77
8.1.200.0030.00617.13
8.1.190.0070.00517.13
8.1.180.0040.00418.85
8.1.170.0000.00917.62
8.1.160.0040.00418.93
8.1.150.0090.00018.80
8.1.140.0000.00719.61
8.1.130.0030.00317.57
8.1.120.0000.00717.53
8.1.110.0060.00317.48
8.1.100.0000.00717.48
8.1.90.0060.00317.49
8.1.80.0000.00717.48
8.1.70.0030.00317.37
8.1.60.0060.00317.60
8.1.50.0000.00817.47
8.1.40.0030.00617.46
8.1.30.0040.00417.67
8.1.20.0040.00417.60
8.1.10.0040.00417.56
8.1.00.0000.00817.43
8.0.300.0030.00519.81
8.0.290.0050.00316.63
8.0.280.0000.00718.47
8.0.270.0080.00017.18
8.0.260.0060.00017.16
8.0.250.0030.00316.91
8.0.240.0000.00716.96
8.0.230.0030.00316.94
8.0.220.0040.00416.88
8.0.210.0050.00516.89
8.0.200.0000.00616.98
8.0.190.0040.00716.79
8.0.180.0080.00016.97
8.0.170.0020.00516.79
8.0.160.0040.00416.79
8.0.150.0000.00816.74
8.0.140.0040.00416.86
8.0.130.0030.00313.27
8.0.120.0030.00516.75
8.0.110.0040.00416.93
8.0.100.0040.00416.88
8.0.90.0000.00716.86
8.0.80.0110.01116.86
8.0.70.0040.00416.91
8.0.60.0020.00516.86
8.0.50.0030.00316.91
8.0.30.0060.01317.24
8.0.20.0120.00817.40
8.0.10.0030.00616.92
8.0.00.0060.01216.77
7.4.330.0000.00515.09
7.4.320.0000.00616.50
7.4.300.0030.00316.61
7.4.290.0000.00716.52
7.4.280.0000.00916.58
7.4.270.0060.00016.52
7.4.260.0070.00016.60
7.4.250.0030.00316.55
7.4.240.0030.00316.53
7.4.230.0030.00316.60
7.4.220.0060.01216.70
7.4.210.0040.01116.55
7.4.200.0040.00416.30
7.4.160.0040.01316.49
7.4.150.0120.01217.40
7.4.140.0060.01117.86
7.4.130.0080.00816.56
7.4.120.0110.00716.50
7.4.110.0060.00716.34
7.4.100.0030.01316.50
7.4.90.0060.01316.51
7.4.80.0170.00719.39
7.4.70.0050.01116.59
7.4.60.0130.00316.45
7.4.50.0140.00416.69
7.4.40.0090.01216.59
7.4.30.0060.01016.58
7.4.00.0070.00714.80
7.3.330.0040.00413.20
7.3.320.0020.00213.12
7.3.310.0070.00016.42
7.3.300.0000.00616.34
7.3.290.0060.01316.24
7.3.280.0050.01216.27
7.3.270.0000.01817.40
7.3.260.0140.00816.54
7.3.250.0130.00616.32
7.3.240.0110.00616.55
7.3.230.0060.01616.50
7.3.210.0030.01316.32
7.3.200.0130.00316.27
7.3.190.0060.01016.29
7.3.180.0060.01316.37
7.3.170.0070.01116.29
7.3.160.0130.00916.43
7.3.10.0070.00316.71
7.3.00.0110.00216.42
7.2.330.0070.01116.43
7.2.320.0130.00316.69
7.2.310.0060.01616.81
7.2.300.0060.01416.47
7.2.290.0090.00916.70
7.2.130.0100.00216.75
7.2.120.0030.01016.89
7.2.110.0050.00716.90
7.2.100.0100.00216.84
7.2.90.0070.00516.96
7.2.80.0060.00917.03
7.2.70.0080.00616.95
7.2.60.0040.00717.07
7.2.50.0030.00917.06
7.2.40.0090.00216.95
7.2.30.0030.01116.80
7.2.20.0090.00516.93
7.2.10.0090.00717.06
7.2.00.0090.00316.92
7.1.250.0070.00315.81
7.1.240.0000.01115.94
7.1.230.0110.00415.68
7.1.220.0000.01315.76
7.1.210.0120.00315.83
7.1.200.0030.00615.87
7.1.190.0070.00315.77
7.1.180.0000.01315.64
7.1.170.0060.00315.88
7.1.160.0030.01215.74
7.1.150.0030.01215.55
7.1.140.0030.01015.61
7.1.130.0070.00715.79
7.1.120.0100.00315.75
7.1.110.0060.00616.00
7.1.100.0060.00615.75
7.1.90.0000.01015.79
7.1.80.0040.00715.82
7.1.70.0030.00916.23
7.1.60.0070.00517.62
7.1.50.0040.00815.77
7.1.40.0070.00015.48
7.1.30.0120.00315.94
7.1.20.0060.00315.87
7.1.10.0070.00415.90
7.1.00.0020.05519.05
7.0.330.0040.00815.47
7.0.320.0080.00415.08
7.0.310.0030.01015.41
7.0.300.0060.00915.57
7.0.290.0060.00915.32
7.0.280.0060.00615.27
7.0.270.0040.00415.22
7.0.260.0120.00015.45
7.0.250.0030.00715.30
7.0.240.0000.00915.56
7.0.230.0000.00815.43
7.0.220.0050.00515.54
7.0.210.0110.00415.58
7.0.200.0050.00416.10
7.0.190.0040.00715.44
7.0.180.0040.00415.33
7.0.170.0060.00315.32
7.0.160.0100.00315.17
7.0.150.0000.01415.43
7.0.140.0090.00615.41
7.0.130.0060.00915.34
7.0.120.0030.00715.28
7.0.110.0060.00315.50
7.0.100.0100.00315.44
7.0.90.0070.03317.74
7.0.80.0070.03717.71
7.0.70.0120.03317.75
7.0.60.0050.03817.77
7.0.50.0080.03117.81
7.0.40.0130.03016.94
7.0.30.0130.03116.92
7.0.20.0100.03016.95
7.0.10.0170.03316.96
7.0.00.0100.03616.88
5.6.380.0060.00614.21
5.6.370.0060.00314.45
5.6.360.0040.00414.43
5.6.350.0040.00414.58
5.6.340.0070.00714.38
5.6.330.0070.00714.77
5.6.320.0070.00313.90
5.6.310.0100.00314.20
5.6.300.0090.00314.38
5.6.290.0060.00914.04
5.6.280.0040.01114.03
5.6.270.0040.01114.22
5.6.260.0030.00714.37
5.6.250.0080.00414.13
5.6.240.0030.01014.43
5.6.230.0180.03617.52
5.6.220.0180.02617.56
5.6.210.0100.03717.63
5.6.200.0080.03717.81
5.6.190.0130.03317.83
5.6.180.0160.02817.77
5.6.170.0100.03817.95
5.6.160.0100.04317.78
5.6.150.0090.03817.75
5.6.140.0080.03417.66
5.6.130.0140.03717.81
5.6.120.0120.03217.67
5.6.110.0070.03717.70
5.6.100.0050.04117.63
5.6.90.0080.03817.82
5.6.80.0150.03417.35
5.6.70.0150.03017.37
5.6.60.0100.04217.52
5.6.50.0080.03417.42
5.6.40.0110.03417.43
5.6.30.0180.03317.42
5.6.20.0070.03817.41
5.6.10.0110.03517.23
5.6.00.0100.03217.43

preferences:
162.53 ms | 403 KiB | 5 Q