3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '2014-02-05_10_10_33_664766918_index.log'; echo substr strrpos($string, '.'); echo '<br>'; echo substr ($string, 0, strrpos($string, '.')); echo '<br>'; echo substr ($string, strrpos($string, '.'));
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'strrpos' (T_STRING), expecting ',' or ';' in /in/3fV5J on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/3fV5J on line 4
Process exited with code 255.