3v4l.org

run code in 300+ PHP versions simultaneously
<?php $season = "NL2016"; // The Big Picture season number $zipcode = "1211PA"; // Uppercase, spaces removed $housenumber = "2"; // House nubmer without any additions $iban = "12345"; // Last 5 numbers of iban $secret = base64_decode("c2VjcmV0Cg=="); $symbols = '0123456789ABCDEFGHJKLMNPQRTUVWXY'; $hashSource = $season . $zipcode . $housenumber . $iban; echo "hash source: $hashSource\n"; $hmac = hash_hmac( "sha256", $hashSource, $secret, true); $hash = unpack('C*', $hmac); $token = ""; for($n = 1; $n <= 8; $n++) { $token .= substr($symbols, $hash[$n] % strlen($symbols), 1); } echo "token: $token\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)
7.0.10.0070.08320.15
7.0.00.0000.04720.07
5.6.160.0070.08720.50
5.6.150.0070.06018.15
5.6.140.0030.04018.20
5.6.130.0100.08718.18
5.6.120.0070.05720.99
5.6.110.0070.08321.10
5.6.100.0030.05020.88
5.6.90.0070.04021.01
5.6.80.0100.08320.54
5.5.300.0070.07718.02
5.5.290.0000.05717.99
5.5.280.0030.05720.97
5.5.270.0130.07720.80
5.5.260.0130.07720.75
5.5.250.0070.07720.69
5.5.240.0170.07720.19

preferences:
143.34 ms | 1394 KiB | 7 Q