3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = array( 'last day of this month', 'Last day of this month', 'lAst Day of This Month'); foreach ($str in $input) { var_dump(date('Y-m-d', strtotime($str))) }
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'in' (T_STRING) in /in/mvQXB on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/mvQXB on line 5
Process exited with code 255.