3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$writer = new XMLWriter(); echo var_dump(getdate());
based on uW50q
Output for 5.6.28, 7.0.14 - 7.1.0
array(11) { ["seconds"]=> int(29) ["minutes"]=> int(42) ["hours"]=> int(12) ["mday"]=> int(31) ["wday"]=> int(5) ["mon"]=> int(10) ["year"]=> int(2014) ["yday"]=> int(303) ["weekday"]=> string(6) "Friday" ["month"]=> string(7) "October" [0]=> int(1414755749) }
Output for 7.0.6
array(11) { ["seconds"]=> int(45) ["minutes"]=> int(58) ["hours"]=> int(6) ["mday"]=> int(3) ["wday"]=> int(2) ["mon"]=> int(5) ["year"]=> int(2016) ["yday"]=> int(123) ["weekday"]=> string(7) "Tuesday" ["month"]=> string(3) "May" [0]=> int(1462251525) }
Output for 7.0.5
array(11) { ["seconds"]=> int(51) ["minutes"]=> int(58) ["hours"]=> int(19) ["mday"]=> int(2) ["wday"]=> int(6) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(92) ["weekday"]=> string(8) "Saturday" ["month"]=> string(5) "April" [0]=> int(1459619931) }
Output for 7.0.4
array(11) { ["seconds"]=> int(50) ["minutes"]=> int(7) ["hours"]=> int(6) ["mday"]=> int(10) ["wday"]=> int(4) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(69) ["weekday"]=> string(8) "Thursday" ["month"]=> string(5) "March" [0]=> int(1457586470) }
Output for 7.0.3
array(11) { ["seconds"]=> int(37) ["minutes"]=> int(34) ["hours"]=> int(6) ["mday"]=> int(18) ["wday"]=> int(5) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(77) ["weekday"]=> string(6) "Friday" ["month"]=> string(5) "March" [0]=> int(1458279277) }
Output for 7.0.2
array(11) { ["seconds"]=> int(34) ["minutes"]=> int(7) ["hours"]=> int(12) ["mday"]=> int(22) ["wday"]=> int(2) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(81) ["weekday"]=> string(7) "Tuesday" ["month"]=> string(5) "March" [0]=> int(1458644854) }
Output for 7.0.1
array(11) { ["seconds"]=> int(53) ["minutes"]=> int(29) ["hours"]=> int(17) ["mday"]=> int(23) ["wday"]=> int(3) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(82) ["weekday"]=> string(9) "Wednesday" ["month"]=> string(5) "March" [0]=> int(1458750593) }
Output for 7.0.0
array(11) { ["seconds"]=> int(2) ["minutes"]=> int(12) ["hours"]=> int(19) ["mday"]=> int(26) ["wday"]=> int(6) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(85) ["weekday"]=> string(8) "Saturday" ["month"]=> string(5) "March" [0]=> int(1459015922) }
Output for hhvm-3.12.0
array(11) { ["seconds"]=> int(43) ["minutes"]=> int(16) ["hours"]=> int(15) ["mday"]=> int(11) ["wday"]=> int(5) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(70) ["weekday"]=> string(6) "Friday" ["month"]=> string(5) "March" [0]=> int(1457705803) }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
array(11) { ["seconds"]=> int(46) ["minutes"]=> int(15) ["hours"]=> int(2) ["mday"]=> int(2) ["wday"]=> int(1) ["mon"]=> int(5) ["year"]=> int(2016) ["yday"]=> int(122) ["weekday"]=> string(6) "Monday" ["month"]=> string(3) "May" [0]=> int(1462148146) }
Output for 5.6.20
array(11) { ["seconds"]=> int(10) ["minutes"]=> int(17) ["hours"]=> int(15) ["mday"]=> int(9) ["wday"]=> int(6) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(99) ["weekday"]=> string(8) "Saturday" ["month"]=> string(5) "April" [0]=> int(1460207830) }
Output for 5.6.19
array(11) { ["seconds"]=> int(49) ["minutes"]=> int(38) ["hours"]=> int(7) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(66) ["weekday"]=> string(6) "Monday" ["month"]=> string(5) "March" [0]=> int(1457332729) }
Output for 5.6.18
array(11) { ["seconds"]=> int(45) ["minutes"]=> int(12) ["hours"]=> int(20) ["mday"]=> int(14) ["wday"]=> int(1) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(73) ["weekday"]=> string(6) "Monday" ["month"]=> string(5) "March" [0]=> int(1457982765) }
Output for 5.6.17
array(11) { ["seconds"]=> int(1) ["minutes"]=> int(55) ["hours"]=> int(10) ["mday"]=> int(19) ["wday"]=> int(6) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(78) ["weekday"]=> string(8) "Saturday" ["month"]=> string(5) "March" [0]=> int(1458381301) }
Output for 5.6.16
array(11) { ["seconds"]=> int(54) ["minutes"]=> int(56) ["hours"]=> int(20) ["mday"]=> int(27) ["wday"]=> int(0) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(86) ["weekday"]=> string(6) "Sunday" ["month"]=> string(5) "March" [0]=> int(1459105014) }
Output for 5.6.15
array(11) { ["seconds"]=> int(6) ["minutes"]=> int(49) ["hours"]=> int(21) ["mday"]=> int(28) ["wday"]=> int(1) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(87) ["weekday"]=> string(6) "Monday" ["month"]=> string(5) "March" [0]=> int(1459194546) }
Output for 5.6.14
array(11) { ["seconds"]=> int(45) ["minutes"]=> int(17) ["hours"]=> int(0) ["mday"]=> int(2) ["wday"]=> int(6) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(92) ["weekday"]=> string(8) "Saturday" ["month"]=> string(5) "April" [0]=> int(1459549065) }
Output for 5.6.13
array(11) { ["seconds"]=> int(49) ["minutes"]=> int(21) ["hours"]=> int(4) ["mday"]=> int(15) ["wday"]=> int(5) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(105) ["weekday"]=> string(6) "Friday" ["month"]=> string(5) "April" [0]=> int(1460686909) }
Output for 5.6.12
array(11) { ["seconds"]=> int(27) ["minutes"]=> int(53) ["hours"]=> int(17) ["mday"]=> int(19) ["wday"]=> int(2) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(109) ["weekday"]=> string(7) "Tuesday" ["month"]=> string(5) "April" [0]=> int(1461081207) }
Output for 5.6.11
array(11) { ["seconds"]=> int(37) ["minutes"]=> int(51) ["hours"]=> int(0) ["mday"]=> int(23) ["wday"]=> int(6) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(113) ["weekday"]=> string(8) "Saturday" ["month"]=> string(5) "April" [0]=> int(1461365497) }
Output for 5.6.10
array(11) { ["seconds"]=> int(4) ["minutes"]=> int(43) ["hours"]=> int(2) ["mday"]=> int(25) ["wday"]=> int(1) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(115) ["weekday"]=> string(6) "Monday" ["month"]=> string(5) "April" [0]=> int(1461544984) }
Output for 5.6.9
array(11) { ["seconds"]=> int(41) ["minutes"]=> int(41) ["hours"]=> int(7) ["mday"]=> int(27) ["wday"]=> int(3) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(117) ["weekday"]=> string(9) "Wednesday" ["month"]=> string(5) "April" [0]=> int(1461735701) }
Output for 5.6.8
array(11) { ["seconds"]=> int(28) ["minutes"]=> int(35) ["hours"]=> int(15) ["mday"]=> int(29) ["wday"]=> int(5) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(119) ["weekday"]=> string(6) "Friday" ["month"]=> string(5) "April" [0]=> int(1461936928) }
Output for 5.5.35
array(11) { ["seconds"]=> int(27) ["minutes"]=> int(53) ["hours"]=> int(5) ["mday"]=> int(22) ["wday"]=> int(0) ["mon"]=> int(5) ["year"]=> int(2016) ["yday"]=> int(142) ["weekday"]=> string(6) "Sunday" ["month"]=> string(3) "May" [0]=> int(1463889207) }
Output for 5.5.34
array(11) { ["seconds"]=> int(19) ["minutes"]=> int(13) ["hours"]=> int(21) ["mday"]=> int(10) ["wday"]=> int(0) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(100) ["weekday"]=> string(6) "Sunday" ["month"]=> string(5) "April" [0]=> int(1460315599) }
Output for 5.5.33
array(11) { ["seconds"]=> int(17) ["minutes"]=> int(1) ["hours"]=> int(17) ["mday"]=> int(8) ["wday"]=> int(2) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(67) ["weekday"]=> string(7) "Tuesday" ["month"]=> string(5) "March" [0]=> int(1457452877) }
Output for 5.5.32
array(11) { ["seconds"]=> int(15) ["minutes"]=> int(4) ["hours"]=> int(23) ["mday"]=> int(16) ["wday"]=> int(3) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(75) ["weekday"]=> string(9) "Wednesday" ["month"]=> string(5) "March" [0]=> int(1458165855) }
Output for 5.5.31
array(11) { ["seconds"]=> int(45) ["minutes"]=> int(43) ["hours"]=> int(13) ["mday"]=> int(20) ["wday"]=> int(0) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(79) ["weekday"]=> string(6) "Sunday" ["month"]=> string(5) "March" [0]=> int(1458477825) }
Output for 5.5.30
array(11) { ["seconds"]=> int(50) ["minutes"]=> int(48) ["hours"]=> int(23) ["mday"]=> int(31) ["wday"]=> int(4) ["mon"]=> int(3) ["year"]=> int(2016) ["yday"]=> int(90) ["weekday"]=> string(8) "Thursday" ["month"]=> string(5) "March" [0]=> int(1459460930) }
Output for 5.5.29
array(11) { ["seconds"]=> int(57) ["minutes"]=> int(26) ["hours"]=> int(18) ["mday"]=> int(16) ["wday"]=> int(6) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(106) ["weekday"]=> string(8) "Saturday" ["month"]=> string(5) "April" [0]=> int(1460824017) }
Output for 5.5.28
array(11) { ["seconds"]=> int(30) ["minutes"]=> int(57) ["hours"]=> int(20) ["mday"]=> int(20) ["wday"]=> int(3) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(110) ["weekday"]=> string(9) "Wednesday" ["month"]=> string(5) "April" [0]=> int(1461178650) }
Output for 5.5.27
array(11) { ["seconds"]=> int(28) ["minutes"]=> int(24) ["hours"]=> int(23) ["mday"]=> int(21) ["wday"]=> int(4) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(111) ["weekday"]=> string(8) "Thursday" ["month"]=> string(5) "April" [0]=> int(1461273868) }
Output for 5.5.26
array(11) { ["seconds"]=> int(22) ["minutes"]=> int(9) ["hours"]=> int(5) ["mday"]=> int(26) ["wday"]=> int(2) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(116) ["weekday"]=> string(7) "Tuesday" ["month"]=> string(5) "April" [0]=> int(1461640162) }
Output for 5.5.25
array(11) { ["seconds"]=> int(48) ["minutes"]=> int(11) ["hours"]=> int(11) ["mday"]=> int(28) ["wday"]=> int(4) ["mon"]=> int(4) ["year"]=> int(2016) ["yday"]=> int(118) ["weekday"]=> string(8) "Thursday" ["month"]=> string(5) "April" [0]=> int(1461834708) }
Output for 5.5.24
array(11) { ["seconds"]=> int(58) ["minutes"]=> int(10) ["hours"]=> int(15) ["mday"]=> int(24) ["wday"]=> int(2) ["mon"]=> int(5) ["year"]=> int(2016) ["yday"]=> int(144) ["weekday"]=> string(7) "Tuesday" ["month"]=> string(3) "May" [0]=> int(1464095458) }
Output for 5.4.45
array(11) { ["seconds"]=> int(40) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589260) }
Output for 5.4.44
array(11) { ["seconds"]=> int(37) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589257) }
Output for 5.4.43
array(11) { ["seconds"]=> int(33) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589253) }
Output for 5.4.42
array(11) { ["seconds"]=> int(32) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589252) }
Output for 5.4.41
array(11) { ["seconds"]=> int(29) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589249) }
Output for 4.3.0, 5.4.40
array(11) { ["seconds"]=> int(28) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589248) }
Output for 5.4.39
array(11) { ["seconds"]=> int(26) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589246) }
Output for 5.4.38
array(11) { ["seconds"]=> int(25) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589245) }
Output for 5.4.37
array(11) { ["seconds"]=> int(23) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589243) }
Output for 5.4.36
array(11) { ["seconds"]=> int(22) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589242) }
Output for 5.4.35
array(11) { ["seconds"]=> int(21) ["minutes"]=> int(27) ["hours"]=> int(3) ["mday"]=> int(7) ["wday"]=> int(1) ["mon"]=> int(9) ["year"]=> int(2015) ["yday"]=> int(249) ["weekday"]=> string(6) "Monday" ["month"]=> string(9) "September" [0]=> int(1441589241) }
Output for 5.4.28 - 5.4.34
array(11) { ["seconds"]=> int(34) ["minutes"]=> int(42) ["hours"]=> int(12) ["mday"]=> int(31) ["wday"]=> int(5) ["mon"]=> int(10) ["year"]=> int(2014) ["yday"]=> int(303) ["weekday"]=> string(6) "Friday" ["month"]=> string(7) "October" [0]=> int(1414755754) }
Output for 5.4.7 - 5.4.27
array(11) { ["seconds"]=> int(35) ["minutes"]=> int(42) ["hours"]=> int(12) ["mday"]=> int(31) ["wday"]=> int(5) ["mon"]=> int(10) ["year"]=> int(2014) ["yday"]=> int(303) ["weekday"]=> string(6) "Friday" ["month"]=> string(7) "October" [0]=> int(1414755755) }
Output for 5.3.16 - 5.4.6
array(11) { ["seconds"]=> int(36) ["minutes"]=> int(42) ["hours"]=> int(12) ["mday"]=> int(31) ["wday"]=> int(5) ["mon"]=> int(10) ["year"]=> int(2014) ["yday"]=> int(303) ["weekday"]=> string(6) "Friday" ["month"]=> string(7) "October" [0]=> int(1414755756) }
Output for 5.2.12 - 5.3.15
array(11) { ["seconds"]=> int(37) ["minutes"]=> int(42) ["hours"]=> int(12) ["mday"]=> int(31) ["wday"]=> int(5) ["mon"]=> int(10) ["year"]=> int(2014) ["yday"]=> int(303) ["weekday"]=> string(6) "Friday" ["month"]=> string(7) "October" [0]=> int(1414755757) }
Output for 4.4.6 - 5.2.11
array(11) { ["seconds"]=> int(38) ["minutes"]=> int(42) ["hours"]=> int(12) ["mday"]=> int(31) ["wday"]=> int(5) ["mon"]=> int(10) ["year"]=> int(2014) ["yday"]=> int(303) ["weekday"]=> string(6) "Friday" ["month"]=> string(7) "October" [0]=> int(1414755758) }
Output for 4.3.1 - 4.4.5
array(11) { ["seconds"]=> int(39) ["minutes"]=> int(42) ["hours"]=> int(12) ["mday"]=> int(31) ["wday"]=> int(5) ["mon"]=> int(10) ["year"]=> int(2014) ["yday"]=> int(303) ["weekday"]=> string(6) "Friday" ["month"]=> string(7) "October" [0]=> int(1414755759) }