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("first day of previous month") ) ;
based on hInJb
Output for 5.0.0 - 5.0.5, 5.2.7 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.1.0RC4
array(11) { ["seconds"]=> int(0) ["minutes"]=> int(0) ["hours"]=> int(0) ["mday"]=> int(1) ["wday"]=> int(5) ["mon"]=> int(2) ["year"]=> int(2013) ["yday"]=> int(31) ["weekday"]=> string(6) "Friday" ["month"]=> string(8) "February" [0]=> int(1359673200) }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.0 - 5.2.6
array(11) { ["seconds"]=> int(0) ["minutes"]=> int(0) ["hours"]=> int(0) ["mday"]=> int(16) ["wday"]=> int(6) ["mon"]=> int(2) ["year"]=> int(2013) ["yday"]=> int(46) ["weekday"]=> string(8) "Saturday" ["month"]=> string(8) "February" [0]=> int(1360969200) }
Output for 5.1.1 - 5.1.6
array(11) { ["seconds"]=> int(0) ["minutes"]=> int(13) ["hours"]=> int(23) ["mday"]=> int(16) ["wday"]=> int(1) ["mon"]=> int(11) ["year"]=> int(2015) ["yday"]=> int(319) ["weekday"]=> string(6) "Monday" ["month"]=> string(8) "November" [0]=> int(1447711980) }
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/XnkDm on line 4
Process exited with code 255.
Output for 4.3.0 - 4.4.9
array(11) { ["seconds"]=> int(59) ["minutes"]=> int(59) ["hours"]=> int(0) ["mday"]=> int(1) ["wday"]=> int(4) ["mon"]=> int(1) ["year"]=> int(1970) ["yday"]=> int(0) ["weekday"]=> string(8) "Thursday" ["month"]=> string(7) "January" [0]=> int(-1) }