3v4l.org

run code in 200+ 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, $endbracketpos - $bracketpos); $result = strtotime($datestamp); var_dump($result);
Output for 5.1.0 - 7.2.0
bool(false)
Output for 4.3.0 - 5.0.5
int(-1)