3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $legit_id = pack("CCC", array(ord('3'), 0, 38), null); var_dump(check_input_data($legit_id, 'int')); function check_input_data($data, $type) { if (preg_match('/^[0-9]{1,10}$/D', $data) && $data < 2147483647) return true; }
based on Yt0FC
Output for 4.3.2 - 4.4.0, 4.4.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: pack(): Type C: too few arguments in /in/Ejbot on line 3 NULL
Output for hhvm-3.10.0 - 3.13.2
Warning: Invalid argument: Type C: too few arguments in /in/Ejbot on line 3 NULL
Output for 4.4.1

Process exited with code 137.
Output for 4.3.0 - 4.3.1
Warning: pack() [http://www.php.net/function.pack]: Type C: too few arguments in /in/Ejbot on line 3 NULL