3v4l.org

run code in 300+ PHP versions simultaneously
<?php $method = 'POST'; $host = 'ic-preprod-za.emeabridge.eu'; $pathInfo = '/api/v2/companies/234441/oauth/quickbooks/button.html'; $content = ''; $time = time(); $replayProtection = true; //$secret = 'ThisTokenIsNotSoSecretChangeItNow'; $secret = 'InExtenSoXeonyS2014OnAir'; $payload = [ $method, $host, $pathInfo, $content, ]; if ($replayProtection === true) { array_unshift($payload, $time); } echo "Time: $time\n"; var_dump($payload); echo hash_hmac('SHA1', implode("\n", $payload), $secret);

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)
7.2.00.0090.00917.79
7.1.120.0000.01516.69
7.1.110.0190.01017.99
7.1.100.0070.00718.49
7.1.90.0100.00717.89
7.1.80.0070.00718.33
7.1.70.0090.01217.25
7.1.60.0320.00634.83
7.1.50.0240.00734.80
7.1.40.0170.01334.43
7.1.30.0240.01132.61
7.1.20.0320.01032.86
7.1.10.0070.01816.58
7.1.00.0060.01216.63

preferences:
26.79 ms | 403 KiB | 5 Q