3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "/gdc/md/ea8h1hfaj4ayiwt823si8dskw4ab6oo6/obj/406"; preg_match('/^\/gdc\/md\/([a-z0-9]+)\/obj\/([0-9]+)$/', $s, $result); print_r($result);
Output for 4.3.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => /gdc/md/ea8h1hfaj4ayiwt823si8dskw4ab6oo6/obj/406 [1] => ea8h1hfaj4ayiwt823si8dskw4ab6oo6 [2] => 406 )