3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n = unpack('n', md5(2025, true)); print_r($n); echo ($n[1] << 32) + 2025;
Output for 5.0.0 - 7.1.0
Array ( [1] => 12579 ) 54026393618409
Output for 4.3.2 - 4.4.9
Warning: Wrong parameter count for md5() in /in/XQc37 on line 2 Warning: unpack(): Type n: not enough input, need 2, have 0 in /in/XQc37 on line 2 2025
Output for 4.3.0 - 4.3.1
Warning: Wrong parameter count for md5() in /in/XQc37 on line 2 Warning: unpack() [http://www.php.net/function.unpack]: Type n: not enough input, need 2, have 0 in /in/XQc37 on line 2 2025