3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "achieve3000_Gestalt_students102713.txt"; $dat = substr($str, strpos("_", $str)); echo $dat; list($prefix, $meat) = explode("_",$str, 2); list($dat, $ext) = explode(".", $meat); echo rtrim($dat, "0123456789"); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
achieve3000_Gestalt_students102713.txtGestalt_students
Output for hhvm-3.10.0

Process exited with code 153.