3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $legit_id = pack("CCC", 0xef, 0xbb, 0xbf); 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 Ejbot
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
NULL