3v4l.org

run code in 500+ PHP versions simultaneously
<?php $response = '{"users":[{ "kind":"admin#directory#user", "id":"115906813143010867543", "etag":"", "primaryEmail":"amr@domain.com", "name":{ "givenName":"amr", "familyName":"h", "fullName":"amr h" }, "isAdmin":false, "isDelegatedAdmin":false, "lastLoginTime":"1970-01-01T00:00:00.000Z", "creationTime":"2021-01-11T20:46:25.000Z", "agreedToTerms":false, "suspended":true, "suspensionReason":"ADMIN", "archived":false, "changePasswordAtNextLogin":true, "ipWhitelisted":false, "emails":[ { "address":"amr@domain.com", "primary":true }, { "address":"amr@domain.com.test-google-a.com" } ], "nonEditableAliases":[ "amr@domain.com.test-google-a.com" ], "customerId":"C04357r1m", "orgUnitPath":"/", "isMailboxSetup":true, "includeInGlobalAddressList":true, "recoveryEmail":"" }]}'; $resJson = json_decode($response, TRUE); $exc = ['someone.else@donotdisplay.me']; foreach($resJson["users"] as $user) { if(!in_array($user['primaryEmail'], $exc)) { if($user['suspended'] == false) { var_dump('unsuspended'); } elseif($user['suspended'] == true) { var_dump('suspended'); } } }

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.70.0100.00716.97
8.5.60.0080.00916.95
8.5.50.0090.01016.66
8.5.30.0120.00519.16
8.5.20.0060.00216.82
8.5.10.0100.01316.96
8.5.00.0160.00620.02
8.4.220.0100.01219.61
8.4.210.0130.00821.29
8.4.180.0100.01022.09
8.4.170.0120.00923.82
8.4.160.0140.00923.11
8.4.150.0070.00516.92
8.4.140.0110.01117.51
8.4.130.0130.00717.77
8.4.120.0100.00722.04
8.4.110.0120.00822.58
8.4.100.0060.00418.02
8.4.90.0100.01018.96
8.4.80.0050.00318.85
8.4.70.0070.00417.77
8.4.60.0040.00418.75
8.4.50.0110.00519.41
8.4.40.0040.00417.89
8.4.30.0180.00320.60
8.4.20.0100.01017.75
8.4.10.0080.00025.96
8.3.310.0110.00918.40
8.3.300.0130.01020.80
8.3.290.0100.01322.50
8.3.280.0100.01120.14
8.3.270.0120.00716.65
8.3.260.0150.00216.46
8.3.250.0080.01018.62
8.3.240.0130.00617.25
8.3.230.0110.00816.41
8.3.220.0100.00818.81
8.3.210.0050.00218.36
8.3.200.0070.00216.52
8.3.190.0080.01117.11
8.3.180.0130.00616.52
8.3.170.0110.00718.78
8.3.160.0060.00917.18
8.3.150.0060.01217.03
8.3.140.0140.00416.54
8.3.130.0050.00318.62
8.3.120.0000.01218.88
8.3.110.0100.00016.42
8.3.100.0150.00424.06
8.3.90.0090.00626.77
8.3.80.0000.00919.36
8.3.70.0120.00616.58
8.3.60.0140.00416.50
8.3.50.0130.00723.67
8.3.40.0110.00418.71
8.3.30.0070.00718.73
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.300.0120.00918.04
8.2.290.0050.00420.66
8.2.280.0080.00719.05
8.2.270.0150.00318.98
8.2.260.0050.00316.43
8.2.250.0040.00419.05
8.2.240.0040.01518.74
8.2.230.0000.00920.94
8.2.220.0090.00337.54
8.2.210.0050.00326.77
8.2.200.0000.00918.88
8.2.190.0120.00318.15
8.2.180.0130.00325.92
8.2.170.0100.00518.75
8.2.160.0070.00722.96
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00826.35
8.2.110.0060.00321.00
8.2.100.0110.00019.39
8.2.90.0040.00417.74
8.2.80.0050.00220.55
8.2.70.0060.00317.75
8.2.60.0030.00517.77
8.2.50.0040.00418.05
8.2.40.0050.00318.15
8.2.30.0050.00218.20
8.2.20.0040.00418.04
8.2.10.0020.00519.25
8.2.00.0000.00819.22
8.1.340.0120.00817.39
8.1.330.0120.00721.83
8.1.320.0120.00716.10
8.1.310.0060.01216.78
8.1.300.0090.00017.87
8.1.290.0000.01130.84
8.1.280.0120.00625.92
8.1.270.0080.00023.99
8.1.260.0080.00028.09
8.1.250.0060.00928.09
8.1.240.0090.00022.11
8.1.230.0080.00320.90
8.1.220.0040.00417.74
8.1.210.0000.00818.91
8.1.200.0070.00317.13
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0050.00320.29
8.1.160.0000.00718.94
8.1.150.0070.00018.85
8.1.140.0040.00418.82
8.1.130.0000.00720.15
8.1.120.0000.00817.51
8.1.110.0040.00417.43
8.1.100.0070.00017.52
8.1.90.0030.00617.48
8.1.80.0040.00417.38
8.1.70.0070.00017.46
8.1.60.0090.00017.58
8.1.50.0040.00417.47
8.1.40.0040.00417.52
8.1.30.0050.00217.71
8.1.20.0080.00017.59
8.1.10.0040.00417.51
8.1.00.0030.00617.44
8.0.300.0060.00319.96
8.0.290.0000.00716.63
8.0.280.0070.00018.51
8.0.270.0000.00717.95
8.0.260.0000.00718.46
8.0.250.0040.00417.01
8.0.240.0070.00016.88
8.0.230.0050.00216.97
8.0.220.0070.00016.79
8.0.210.0000.00816.79
8.0.200.0070.00016.97
8.0.190.0040.00416.93
8.0.180.0040.00416.95
8.0.170.0060.00316.88
8.0.160.0080.00016.80
8.0.150.0040.00416.88
8.0.140.0070.00016.87
8.0.130.0000.00513.42
8.0.120.0040.00416.97
8.0.110.0040.00417.01
8.0.100.0040.00416.71
8.0.90.0040.00416.84
8.0.80.0070.01216.85
8.0.70.0000.00716.72
8.0.60.0050.00316.78
8.0.50.0070.00016.91
8.0.30.0070.01116.93
8.0.20.0190.00316.74
8.0.10.0070.01116.91
8.0.00.0130.00617.20
7.4.330.0050.00015.55
7.4.320.0000.00616.66
7.4.300.0060.00016.64
7.4.290.0070.00016.56
7.4.280.0070.00016.65
7.4.270.0060.00016.65
7.4.260.0030.00313.39
7.4.250.0040.00416.44
7.4.240.0030.00316.49
7.4.230.0000.00816.72
7.4.220.0030.00316.43
7.4.210.0050.01016.58
7.4.200.0030.00316.42
7.4.140.0070.01116.53
7.4.130.0040.01416.63
7.4.120.0000.01716.48
7.4.110.0140.00316.51
7.4.100.0180.00316.38
7.4.90.0100.00716.39
7.4.80.0090.00916.39
7.4.70.0090.00916.45
7.4.60.0100.00616.72
7.4.50.0150.00316.35
7.4.40.0070.01116.50
7.4.30.0040.01416.70
7.4.20.0110.00716.54
7.4.10.0140.00416.28
7.4.00.0140.00416.50
7.3.330.0000.00916.31
7.3.320.0030.00313.20
7.3.310.0000.00716.23
7.3.300.0020.00516.23
7.3.290.0040.01516.26
7.3.260.0100.00716.39
7.3.250.0130.00416.38
7.3.240.0140.00316.32
7.3.230.0040.01516.37
7.3.220.0000.01716.25
7.3.210.0100.01016.52
7.3.200.0070.01016.25
7.3.190.0080.01216.47
7.3.180.0080.00816.52
7.3.170.0090.00916.33
7.3.160.0100.00716.45
7.3.150.0100.00716.37
7.3.140.0080.01316.31
7.3.130.0090.00916.35
7.3.120.0260.02416.20
7.3.110.0240.02116.41
7.3.100.0240.00716.37
7.3.90.0270.01616.23
7.3.80.0190.01516.28
7.3.70.0210.03216.20
7.3.60.0170.02016.44
7.3.50.0210.00316.38
7.3.40.0110.00916.31
7.3.30.0190.02216.25
7.3.20.0100.00716.19
7.3.10.0190.03216.32
7.3.00.0090.00916.30

preferences:
116.88 ms | 1374 KiB | 5 Q