3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $path = 'Nil'; $index = 'surveyandmedia3'; $medianame = preg_match("/surveyandmedia(\d+)$/",$index,$qnumber); if(count($qnumber) > 0) $path = $qnumber; else $path = $index; print_r($path[1]); ?>
based on ArMm6
Output for 5.3.18 - 7.2.0
3