3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(pack('q*', PHP_INT_MAX));
based on vLST4
Output for 5.6.7 - 7.3.0rc4
string(8) "�������"
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.5.35
Warning: pack(): Type q: unknown format code in /in/lVrUt on line 3 bool(false)
Output for 4.3.2 - 4.3.11, 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/lVrUt on line 3 Warning: pack(): Type q: unknown format code in /in/lVrUt on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/lVrUt on line 3 Warning: pack() [http://www.php.net/function.pack]: Type q: unknown format code in /in/lVrUt on line 3 bool(false)