3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = 'tony1@fusio.net'; $sha1_key = sha1("bananaman"); $verb = "GET"; $json_request = "{'Request':{'satn':'187803'}, 'emailAddress':'tony1@fusio.net'}"; $request_body = json_encode($json_request); $md5d_content = base64_encode(md5($request_body, true)); $content_type = "application/json"; $auth_code = base64_encode(hash_hmac("sha1", $verb . "\n" . $md5d_content . "\n"; $date_now = gmdate("c"); $content_type . "\n" . $date_now, $sha1_key)); $header = "Content-Type: application/json" . "\n" . "Content-Length: " . strlen($request_body) . "\n" . "Content-MD5: " . $md5d_content . "\n" . "Date: " . $date_now . "\n" . "Authorization: RDN " . $username . ":" . $auth_code; var_dump($header);

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)
5.4.280.0100.03612.36
5.4.270.0150.04712.36
5.4.260.0170.03712.36
5.4.250.0070.04512.36
5.4.240.0100.03412.36
5.4.230.0060.04012.36
5.4.220.0110.05212.36
5.4.210.0130.05212.36
5.4.200.0130.05212.35
5.4.190.0130.05512.35
5.4.180.0130.04512.35
5.4.170.0160.06912.36
5.4.160.0100.05312.36
5.4.150.0100.06712.35
5.4.140.0290.10012.04
5.4.130.0110.07812.02
5.4.120.0210.07811.99
5.4.110.0100.05911.98
5.4.100.0170.10411.98
5.4.90.0100.05811.98
5.4.80.0070.04111.98
5.4.70.0110.03211.98
5.4.60.0090.03611.98
5.4.50.0100.04911.98
5.4.40.0100.05011.97
5.4.30.0050.05211.96
5.4.20.0120.05411.96
5.4.10.0160.04311.96
5.4.00.0060.03611.46
5.3.280.0140.04712.71
5.3.270.0140.05012.72
5.3.260.0130.05112.72
5.3.250.0130.05112.72
5.3.240.0130.06212.72
5.3.230.0080.05312.71
5.3.220.0060.04712.68
5.3.210.0110.04012.68
5.3.200.0110.04812.68
5.3.190.0100.04412.68
5.3.180.0250.03912.68
5.3.170.0100.03812.67
5.3.160.0090.03712.68
5.3.150.0080.03912.68
5.3.140.0050.04412.66
5.3.130.0110.03512.66
5.3.120.0080.05312.66
5.3.110.0060.04212.66
5.3.100.0060.03912.12
5.3.90.0090.04412.09
5.3.80.0080.04712.07
5.3.70.0080.05012.07
5.3.60.0100.04312.06
5.3.50.0080.04412.00
5.3.40.0110.04212.00
5.3.30.0080.05511.94
5.3.20.0130.05211.70
5.3.10.0070.04411.67
5.3.00.0040.03811.66

preferences:
152.22 ms | 1394 KiB | 7 Q