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"; $bytes = 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); $randomString = vsprintf(str_repeat('%c', count($bytes)), $bytes); $private_key = 'aDknWCcwJEsuNjRpJS52ZnN4Ti1MRDk1M2cyNU5N'; $nonce = hash('sha512', $randomString); echo $nonce;
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
2015-08-31T12:22:40Z6890bc107a822c5a79467c3da93a67b8fbe6d65a2396f5b50d9d95cd1401fa4ab1b436ccff6c04ef470af0ebf8191853fbec8fb61afe730ba6b1e58b9d13b8da
Output for 5.3.27 - 5.3.29
2015-08-31T12:23:00Z6890bc107a822c5a79467c3da93a67b8fbe6d65a2396f5b50d9d95cd1401fa4ab1b436ccff6c04ef470af0ebf8191853fbec8fb61afe730ba6b1e58b9d13b8da
Output for 5.3.21 - 5.3.26
2015-08-31T12:23:01Z6890bc107a822c5a79467c3da93a67b8fbe6d65a2396f5b50d9d95cd1401fa4ab1b436ccff6c04ef470af0ebf8191853fbec8fb61afe730ba6b1e58b9d13b8da
Output for 5.3.14 - 5.3.20
2015-08-31T12:23:02Z6890bc107a822c5a79467c3da93a67b8fbe6d65a2396f5b50d9d95cd1401fa4ab1b436ccff6c04ef470af0ebf8191853fbec8fb61afe730ba6b1e58b9d13b8da
Output for 5.3.8 - 5.3.13
2015-08-31T12:23:03Z6890bc107a822c5a79467c3da93a67b8fbe6d65a2396f5b50d9d95cd1401fa4ab1b436ccff6c04ef470af0ebf8191853fbec8fb61afe730ba6b1e58b9d13b8da
Output for 5.3.1 - 5.3.7
2015-08-31T12:23:04Z6890bc107a822c5a79467c3da93a67b8fbe6d65a2396f5b50d9d95cd1401fa4ab1b436ccff6c04ef470af0ebf8191853fbec8fb61afe730ba6b1e58b9d13b8da
Output for 5.2.12 - 5.2.17, 5.3.0
2015-08-31T12:23:05Z6890bc107a822c5a79467c3da93a67b8fbe6d65a2396f5b50d9d95cd1401fa4ab1b436ccff6c04ef470af0ebf8191853fbec8fb61afe730ba6b1e58b9d13b8da
Output for 5.2.6 - 5.2.11
2015-08-31T12:23:06Z6890bc107a822c5a79467c3da93a67b8fbe6d65a2396f5b50d9d95cd1401fa4ab1b436ccff6c04ef470af0ebf8191853fbec8fb61afe730ba6b1e58b9d13b8da
Output for 5.1.5 - 5.1.6, 5.2.0 - 5.2.5
2015-08-31T12:23:07Z6890bc107a822c5a79467c3da93a67b8fbe6d65a2396f5b50d9d95cd1401fa4ab1b436ccff6c04ef470af0ebf8191853fbec8fb61afe730ba6b1e58b9d13b8da
Output for 5.1.2 - 5.1.4
2015-08-31T12:23:08Z6890bc107a822c5a79467c3da93a67b8fbe6d65a2396f5b50d9d95cd1401fa4ab1b436ccff6c04ef470af0ebf8191853fbec8fb61afe730ba6b1e58b9d13b8da
Output for 5.0.1 - 5.0.5, 5.1.0 - 5.1.1
2015-08-31T12:23:08Z Fatal error: Call to undefined function hash() in /in/vDUDP on line 9
Process exited with code 255.
Output for 5.0.0
2015-08-31T12:23:09Z Fatal error: Call to undefined function hash() in /in/vDUDP on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
2015-08-31T12:23:09Z Fatal error: Call to undefined function: hash() in /in/vDUDP on line 9
Process exited with code 255.
Output for 4.4.1 - 4.4.4
2015-08-31T12:23:09Z Fatal error: Call to undefined function: hash() in /in/vDUDP on line 9
Process exited with code 255.
Output for 4.3.4 - 4.3.11, 4.4.0
2015-08-31T12:23:10Z Fatal error: Call to undefined function: hash() in /in/vDUDP on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.3
2015-08-31T12:23:11Z Fatal error: Call to undefined function: hash() in /in/vDUDP on line 9
Process exited with code 255.
Output for 4.3.1
2015-08-31T12:23:11Z Fatal error: Call to undefined function: hash() in /in/vDUDP on line 9
Output for 4.3.0
2015-09-06T14:56:03Z Fatal error: Call to undefined function: hash() in /in/vDUDP on line 9

preferences:
342.98 ms | 401 KiB | 459 Q