3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php check_input_data('wello'); function check_input_data($data, $type) { if (preg_match('/^[0-9]{1,10}$/D', $data) && $data < 2147483647) return true; }
based on naMbX
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function check_input_data(), 1 passed in /in/clpSd on line 3 and exactly 2 expected in /in/clpSd:6 Stack trace: #0 /in/clpSd(3): check_input_data('wello') #1 {main} thrown in /in/clpSd on line 6
Process exited with code 255.
Output for 5.1.0 - 7.0.14
Warning: Missing argument 2 for check_input_data(), called in /in/clpSd on line 3 and defined in /in/clpSd on line 6
Output for 4.3.0 - 5.0.5
Warning: Missing argument 2 for check_input_data() in /in/clpSd on line 6