3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '2014-02-05_10_10_33_664766918_index.log'; echo substr ($string, 0, strrpos($string, '.')); echo substr ($string, strrpos($string, '.'));

preferences:
35.95 ms | 402 KiB | 5 Q