3v4l.org

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