3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo bin2hex(pack('Z20', '44436412'));
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
3434343336343132000000000000000000000000
Output for 5.2.3 - 5.4.45
Warning: pack(): Type Z: unknown format code in /in/UCes4 on line 2
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: pack() [<a href='function.pack'>function.pack</a>]: Type Z: unknown format code in <b>/in/UCes4</b> on line <b>2</b><br />
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: pack(): Type Z: unknown format code in <b>/in/UCes4</b> on line <b>2</b><br />
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: pack() [<a href='http://www.php.net/function.pack'>function.pack</a>]: Type Z: unknown format code in <b>/in/UCes4</b> on line <b>2</b><br />