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; $d = date('ymdhms')." L"; print_r($d); ?>
based on bqLOX
Output for 5.6.28, 7.0.20 - 7.2.0
150923040959 L
Output for 5.4.0 - 5.6.23, 7.0.0 - 7.0.8
150923040958 L