3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hasGroupUrlInAppwrite($groupUrl) { $baseUrl = "https://nyc.cloud.appwrite.io/v1"; $projectId = "solion"; $projectJWT = "standard_2a24b2a81778aad83acec7a7bd8d6223c42d4cb21410f7dc93d1481dae2fab2cb0f75e88cde4b2f4bdb81ad92e9e29b24100944f32f5093b52e99e178d68875e2835a0357ac1f08996889d7ad5dad3037c6ad2bba3419e80c01a5bcc5e88beab0682039ae6d197a2d0c000ca7e59e02a8def68fb17191d78ea27feaf804cc9ce"; $databaseId = "solion-app"; $collectionId = "groups"; $url = $baseUrl . "/databases/" . $databaseId . "/collections/" . $collectionId . "/documents"; $params = array( 'queries[]' => json_encode(array( 'method' => 'equal', 'column' => 'url', 'values' => [$groupUrl], )), 'total' => true, ); $url .= '?' . http_build_query($params); $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json', 'X-Appwrite-Project: ' . $projectId, 'X-Appwrite-Key: ' . $projectJWT, ]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); if (curl_errno($ch)) { return false; } curl_close($ch); error_log($response); $data = json_decode($response, true); if (isset($data['total']) && $data['total'] > 0) { return true; } else { return false; } }

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.0220.00716.37
8.4.150.0370.00619.55
8.4.140.0370.00817.53
8.4.130.0330.01017.53
8.4.120.0350.01117.61
8.4.110.0380.00717.75
8.4.100.0330.01217.47
8.4.90.0390.00517.58
8.4.80.0380.01117.61
8.4.70.0390.00517.59
8.4.60.0380.00917.56
8.4.50.0360.01417.74
8.4.40.0390.00917.49
8.4.30.0430.00917.32
8.4.20.0370.01117.25
8.4.10.0410.00717.61
8.3.280.0150.00619.91
8.3.270.0260.00616.47
8.3.260.0250.00816.41
8.3.250.0370.01016.84
8.3.240.0330.00716.48
8.3.230.0360.00616.68
8.3.220.0390.00516.64
8.3.210.0390.00716.61
8.3.200.0380.00816.67
8.3.190.0360.01116.52
8.3.180.0330.00416.51
8.3.170.0250.00716.39
8.3.160.0380.01016.30
8.3.150.0270.00916.54
8.3.140.0340.01116.20
8.3.130.0320.00916.53
8.3.120.0380.00716.63
8.3.110.0320.01116.47
8.3.100.0410.01016.68
8.3.90.0360.01116.48
8.3.80.0410.00716.54
8.3.70.0390.00816.39
8.3.60.0360.01216.59
8.3.50.0360.01016.54
8.3.40.0380.00717.82
8.3.30.0280.00917.55
8.3.20.0240.01117.71
8.3.10.0280.00917.79
8.3.00.0270.00917.78
8.2.290.0240.00616.65
8.2.280.0330.00816.18
8.2.270.0320.01116.58
8.2.260.0350.00918.10
8.2.250.0330.00916.64
8.2.240.0340.00916.55
8.2.230.0370.00916.39
8.2.220.0360.01016.29
8.2.210.0250.00916.31
8.2.200.0300.01616.49
8.2.190.0390.00716.41
8.2.180.0300.00716.53
8.2.170.0340.00817.95
8.2.160.0430.00617.65
8.2.150.0320.00717.73
8.2.140.0300.01117.49
8.2.130.0290.01319.18
8.2.120.0290.01017.66
8.2.110.0350.00817.78
8.2.100.0290.00917.46
8.2.90.0300.00817.53
8.2.80.0300.01117.72
8.2.70.0320.00817.43
8.2.60.0270.00717.78
8.2.50.0300.00817.68
8.2.40.0290.01217.45
8.2.30.0270.01517.53
8.2.20.0330.00917.52
8.2.10.0290.00917.51
8.2.00.0390.00917.45

preferences:
29.73 ms | 403 KiB | 5 Q