3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(time()); var_dump(time() / 100); var_dump(hash_hmac('md5', 'this_is_a_secret' . time() / 100, 'nonce'));
Output for 5.1.2 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.4, 5.3.7 - 5.3.29, 5.4.0 - 5.4.24, 5.4.27 - 5.4.45, 5.5.0 - 5.5.8, 5.5.10 - 5.5.38, 5.6.0 - 5.6.21, 5.6.23 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
int(1409023776) float(14090237.76) string(32) "cfbc26d96cb540eaf1e9c28174fa5c5a"
Output for 5.4.25 - 5.4.26, 5.5.9, 5.6.22
int(1409023777) float(14090237.77) string(32) "afd0f9e7c24b375626573ab772319157"
Output for 5.3.5 - 5.3.6
int(1409023776) float(14090237.77) string(32) "afd0f9e7c24b375626573ab772319157"
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.1
int(1409023776) float(14090237.76) Fatal error: Call to undefined function hash_hmac() in /in/rUZXR on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
int(1409023776) float(14090237.76) Fatal error: Call to undefined function: hash_hmac() in /in/rUZXR on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
int(1409023776) float(14090237.76) Fatal error: Call to undefined function: hash_hmac() in /in/rUZXR on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
int(1409023776) float(14090237.76) Fatal error: Call to undefined function: hash_hmac() in /in/rUZXR on line 5

preferences:
247.6 ms | 401 KiB | 325 Q