3v4l.org

run code in 300+ PHP versions simultaneously
<?php $the_date = strtotime('31.10.2013'); echo date('r', strtotime('last day of next month', $the_date));

preferences:
36.06 ms | 402 KiB | 5 Q