3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array(); $data[0] = unpack('a5', $packed); $data[1] = unpack('Z5', $packed); var_dump($data);
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: packed in /in/KruID on line 3 Warning: unpack(): Type a: not enough input, need 5, have 0 in /in/KruID on line 3 Notice: Undefined variable: packed in /in/KruID on line 4 Warning: unpack(): Type Z: not enough input, need 5, have 0 in /in/KruID on line 4 array(2) { [0]=> bool(false) [1]=> bool(false) }
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: packed in /in/KruID on line 3 Warning: Invalid argument: Type a: not enough input, need 5, have 0 in /in/KruID on line 3 Notice: Undefined variable: packed in /in/KruID on line 4 Warning: Invalid argument: Type Z: not enough input, need 5, have 0 in /in/KruID on line 4 array(2) { [0]=> bool(false) [1]=> bool(false) }
Output for 5.2.4 - 5.4.45
Notice: Undefined variable: packed in /in/KruID on line 3 Warning: unpack(): Type a: not enough input, need 5, have 0 in /in/KruID on line 3 Notice: Undefined variable: packed in /in/KruID on line 4 Warning: unpack(): Invalid format type Z in /in/KruID on line 4 array(2) { [0]=> bool(false) [1]=> bool(false) }
Output for 5.0.4 - 5.2.3
Notice: Undefined variable: packed in /in/KruID on line 3 Warning: unpack(): Type a: not enough input, need 5, have 0 in /in/KruID on line 3 Notice: Undefined variable: packed in /in/KruID on line 4 array(2) { [0]=> bool(false) [1]=> array(0) { } }
Output for 4.3.2 - 4.4.7, 5.0.0 - 5.0.3
Notice: Undefined variable: packed in /in/KruID on line 3 Warning: unpack(): Type a: not enough input, need 5, have 0 in /in/KruID on line 3 Notice: Undefined variable: packed in /in/KruID on line 4 array(2) { [0]=> bool(false) [1]=> array(0) { } }
Output for 4.4.8 - 4.4.9
Notice: Undefined variable: packed in /in/KruID on line 3 Warning: unpack(): Type a: not enough input, need 5, have 0 in /in/KruID on line 3 Notice: Undefined variable: packed in /in/KruID on line 4 Warning: unpack(): Invalid format type Z in /in/KruID on line 4 array(2) { [0]=> bool(false) [1]=> bool(false) }
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: packed in /in/KruID on line 3 Warning: unpack() [http://www.php.net/function.unpack]: Type a: not enough input, need 5, have 0 in /in/KruID on line 3 Notice: Undefined variable: packed in /in/KruID on line 4 array(2) { [0]=> bool(false) [1]=> array(0) { } }