3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = "holm_25.jpg"; $findnum = explode("-",$file); preg_match_all('/([\d]+)/', $findnum[0], $match); $sortnum = implode("", $match[0]); print_r( $findnum);
based on hQaDC
Output for 4.3.0 - 7.1.0
Array ( [0] => holm_25.jpg )