3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo gmdate('Y-m-d\TH:i:s\Z'); $created = "2015-08-25T10:45:55Z"; $randomString = array(219,237,93,18,84,210,254,168,120,82,56,138,97,64,219,199,173,111,217,208,167,150,79,50,114,227,40,191,210,188,233,34); $private_key = 'aDknWCcwJEsuNjRpJS52ZnN4Ti1MRDk1M2cyNU5N'; $nonce = hash('sha512', $randomString); $key = base64_decode($private_key); $digest = base64_encode(sha1(base64_decode($nonce) . $created . $key, true)); sprintf('UsernameToken Username="%s", PasswordDigest="%s", Nonce="%s", Created="%s"', 'wkstore', $digest, $nonce, $created);
Output for git.master, git.master_jit, rfc.property-hooks
2015-08-31T12:18:54Z Fatal error: Uncaught TypeError: hash(): Argument #2 ($data) must be of type string, array given in /in/j9Wmi:8 Stack trace: #0 /in/j9Wmi(8): hash('sha512', Array) #1 {main} thrown in /in/j9Wmi on line 8
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
68.61 ms | 401 KiB | 8 Q