3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$writer = new XMLWriter(); //echo var_dump(getdate(strtotime("2013-2"))); echo date("Y-m-t", strtotime("2013-2")); //echo date("Y-m-t", strtotime("first day of previous month") ) ;
based on MECDU
Output for 5.0.0 - 5.0.5, 5.2.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2013-02-28
Output for 5.2.0 - 5.2.6
2013-03-31
Output for 5.1.1 - 5.1.6
2014-10-31
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/CTsr3 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.4.9
1970-01-31