3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $legit_id = pack("CCC", ord('3'), 0, 38); var_dump($legit_id); 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 ZJtFW
Output for 4.3.0 - 7.2.0
string(3) "3&" NULL