3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array( 'last day of this month', 'Last day of this month', 'lAst Day of This Month'); foreach ($input as $str) { var_dump(date('Y-m-d', strtotime($str))); }

preferences:
13.53 ms | 406 KiB | 5 Q