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 1CbmL
Output for 5.3.18 - 7.2.6
Warning: substr() expects at least 2 parameters, 1 given in /in/aY2f2 on line 2 NULL int(0) int(9)