3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = '[Tue Jun 18 22:25:32 BST 2013] NeoThermic likes B*witched - C"est La Vie'; $bracketpos = strpos($input, '['); $endbracketpos = strpos($input, ']'); $datestamp = substr($input, $bracketpos + 1, $endbracketpos - $bracketpos - 1); $intdate = strtotime($datestamp); $likespos = strpos($input, 'likes'); $nickname = substr($input, $endbracketpos + 1 , $likespos - $endbracketpos); var_dump($nickname);
Output for 4.3.0 - 7.1.0
string(13) " NeoThermic l"