3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (phpversion() != '7.0.0') { die; } $time = time(); $randomString1 = bin2hex(random_bytes(20)); $randomString2 = bin2hex(random_bytes(10)); var_dump( $time, $randomString1, $randomString2, md5($time.$randomString1.$randomString2) );
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.1 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
Output for 7.0.0
int(1449586061) string(40) "8fc4e9e6244be5b49bec1401b8441e30ae8d550b" string(20) "4d48c9486acacc801020" string(32) "aea41bab8099db2f59ed121c3478107c"

preferences:
105.5 ms | 401 KiB | 119 Q