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:
43.56 ms | 402 KiB | 5 Q