3v4l.org

run code in 500+ PHP versions simultaneously
<?php $CLIENT_ID = "5372_dc3n7NvbHBApDwhEUEY5vq9fcaMSsYKnmYNMukC2"; $SECRET = "GFZtdbDOzxbA.ouvKX2ZGYoBL1Bi32cawWxalwL6kBDRZk8gPvZwNitAuROTJ9dl"; $nonce = rtrim(base64_encode(random_bytes(rand(12, 30))), '=');$nonce = rtrim(base64_encode(random_bytes(rand(12, 30))), '='); $created = gmdate('Y-m-d\TH:i:s\Z'); $message = $nonce . $created . $CLIENT_ID; $signature = base64_encode(hash_hmac('sha256', $message, $SECRET, true)); $auth_header = 'http://api.soaringspot.com/v1/hmac/v1 ' . 'ClientID="' . $CLIENT_ID . '", ' . 'Signature="' . $signature . '", ' . 'Nonce="' . $nonce . '", ' . 'Created="' . $created . '"'; echo "Nonce: " . $nonce . "\n"; echo "Created: " . $created . "\n"; echo "Auth: " . $auth_header . "\n\n"; $ch = curl_init("https://api.soaringspot.com/v1/contests"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: " . $auth_header, "Accept: application/hal+json", ]); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo "HTTP Code: " . $http_code . "\n"; echo "Response: " . $response . "\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.5.30.0130.00616.88
8.5.20.0310.00816.95
8.5.10.0310.00916.65
8.5.00.0340.00816.81
8.4.180.0370.00819.77
8.4.170.0330.01019.77
8.4.160.0330.00919.78
8.4.150.0300.01119.82
8.4.140.0280.00917.91
8.4.130.0290.01417.83
8.4.120.0370.00818.16
8.4.110.0380.01118.12
8.4.100.0240.00818.14
8.4.90.0200.00618.12
8.4.80.0370.00918.08
8.4.70.0400.01318.00
8.4.60.0430.00617.88
8.4.50.0390.00717.77
8.4.40.0360.00717.95
8.4.30.0330.01017.58
8.4.20.0380.01117.76
8.4.10.0380.01217.82
8.3.300.0360.00718.34
8.3.290.0260.01118.41
8.3.280.0370.00818.32
8.3.270.0340.00816.78
8.3.260.0380.00516.80
8.3.250.0310.00616.79
8.3.240.0230.01016.59
8.3.230.0430.00916.75
8.3.220.0270.00916.61
8.3.210.0360.00916.84
8.3.200.0410.01016.68
8.3.190.0330.01016.82
8.3.180.0320.00716.83
8.3.170.0360.01216.63
8.3.160.0370.01016.60
8.3.150.0380.00616.99
8.3.140.0350.00916.98
8.3.130.0280.00616.92
8.3.120.0230.00316.89
8.3.110.0160.00716.93
8.3.100.0300.00616.72
8.3.90.0280.00616.68
8.3.80.0370.00916.57
8.3.70.0310.00916.82
8.3.60.0260.00316.86
8.3.50.0390.01116.71
8.3.40.0370.00718.14
8.3.30.0300.01317.80
8.3.20.0230.00718.02
8.3.10.0190.00917.97
8.3.00.0120.00917.91

preferences:
55.97 ms | 728 KiB | 5 Q