3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(substr((int)preg_replace("/[^0-9]/", "", "991007359 - 5852713"),0,9));
based on aY2f2
Output for 5.3.18 - 7.2.0
string(9) "991007359"