3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'link1'; $int = substr($str, 4); //$int = filter_var($str, FILTER_SANITIZE_NUMBER_INT); echo $int;
based on GkHU0
Output for 4.3.0 - 7.1.0
1