3v4l.org

run code in 500+ PHP versions simultaneously
<?php $CLIENT_ID = "5372_dc3n7NvbHBApDwhEUEY5vq9fcaMSsYKnmYNMukC2"; $SECRET = "GFZtdbDOzxbA.ouvKX2ZGYoBL1Bi32cawWxalwL6kBDRZk8gPvZwNitAuROTJ9dl"; $nonce = rtrim(base64_encode(openssl_random_pseudo_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.0110.00618.50
8.5.20.0300.00616.72
8.5.10.0310.00916.68
8.5.00.0320.00816.73
8.4.180.0160.00721.55
8.4.170.0300.00919.73
8.4.160.0320.00919.68
8.4.150.0330.00919.64
8.4.140.0340.00817.63
8.4.130.0380.00917.46
8.4.120.0380.00717.86
8.4.110.0370.00718.11
8.4.100.0330.01018.01
8.4.90.0350.00717.98
8.4.80.0350.00718.01
8.4.70.0310.01318.09
8.4.60.0390.00518.04
8.4.50.0370.00717.93
8.4.40.0360.01117.76
8.4.30.0390.00617.70
8.4.20.0350.00618.01
8.4.10.0250.00417.99
8.3.300.0180.00218.15
8.3.290.0310.01118.09
8.3.280.0310.00918.44
8.3.270.0350.01016.64
8.3.260.0370.00616.74
8.3.250.0380.00716.79
8.3.240.0280.00716.68
8.3.230.0230.00316.41
8.3.220.0200.00616.63
8.3.210.0210.00316.77
8.3.200.0190.00516.64
8.3.190.0290.00716.52
8.3.180.0350.00716.41
8.3.170.0370.01216.50
8.3.160.0380.00516.59
8.3.150.0320.01016.84
8.3.140.0330.00816.61
8.3.130.0280.01516.61
8.3.120.0330.00716.61
8.3.110.0320.00916.51
8.3.100.0300.00516.67
8.3.90.0250.00516.47
8.3.80.0360.00916.52
8.3.70.0370.01016.63
8.3.60.0340.01216.60
8.3.50.0310.01416.67
8.3.40.0350.00917.71
8.3.30.0270.01017.86
8.3.20.0270.01017.89
8.3.10.0280.00818.09
8.3.00.0240.00617.96

preferences:
42.05 ms | 709 KiB | 5 Q