3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = new \DateTime('last day of this month'); var_dump($start->format('m d Y H i s'));
based on SlD7a
Output for 5.6.28, 7.0.20 - 7.2.0
string(19) "12 31 2015 10 54 19"
Output for 7.0.6
string(19) "05 31 2016 12 42 10"
Output for 7.0.5
string(19) "04 30 2016 08 50 14"
Output for 7.0.4
string(19) "03 31 2016 20 54 29"
Output for 7.0.3
string(19) "03 31 2016 22 13 57"
Output for 7.0.2
string(19) "03 31 2016 04 28 01"
Output for 7.0.1
string(19) "03 31 2016 07 39 11"
Output for 7.0.0
string(19) "03 31 2016 09 32 58"
Output for 5.6.21
string(19) "05 31 2016 15 41 23"
Output for 5.6.20
string(19) "04 30 2016 07 51 44"
Output for 5.6.19
string(19) "03 31 2016 05 01 26"
Output for 5.6.18
string(19) "03 31 2016 13 54 29"
Output for 5.6.17
string(19) "03 31 2016 01 28 29"
Output for 5.6.16
string(19) "03 31 2016 10 22 13"
Output for 5.6.15
string(19) "03 31 2016 11 11 35"
Output for 5.6.14
string(19) "04 30 2016 16 52 48"
Output for 5.6.13
string(19) "04 30 2016 17 32 46"
Output for 5.6.12
string(19) "04 30 2016 08 00 55"
Output for 5.6.11
string(19) "04 30 2016 14 26 25"
Output for 5.6.10
string(19) "04 30 2016 16 31 15"
Output for 5.6.9
string(19) "04 30 2016 21 39 30"
Output for 5.6.8
string(19) "04 30 2016 06 28 45"
Output for 5.5.35
string(19) "05 31 2016 01 09 32"
Output for 5.5.34
string(19) "04 30 2016 10 05 04"
Output for 5.5.33
string(19) "03 31 2016 07 58 44"
Output for 5.5.32
string(19) "03 31 2016 17 50 06"
Output for 5.5.31
string(19) "03 31 2016 04 36 02"
Output for 5.5.30
string(19) "04 30 2016 13 04 07"
Output for 5.5.29
string(19) "04 30 2016 07 50 32"
Output for 5.5.28
string(19) "04 30 2016 11 18 53"
Output for 5.5.27
string(19) "04 30 2016 12 59 05"
Output for 5.5.26
string(19) "04 30 2016 19 10 37"
Output for 5.5.25
string(19) "04 30 2016 02 35 53"
Output for 5.5.24
string(19) "05 31 2016 09 02 11"
Output for 5.4.44 - 5.4.45
string(19) "12 31 2015 10 54 23"
Output for 5.4.43
string(19) "12 31 2015 10 54 24"
Output for 5.4.41 - 5.4.42
string(19) "12 31 2015 10 54 25"
Output for 5.4.38 - 5.4.40
string(19) "12 31 2015 10 54 26"
Output for 5.4.34 - 5.4.37
string(19) "12 31 2015 10 54 27"
Output for 5.3.29, 5.4.31 - 5.4.32
string(19) "12 31 2015 10 54 28"
Output for 5.4.25 - 5.4.30
string(19) "12 31 2015 10 54 29"
Output for 5.3.28, 5.4.20 - 5.4.24
string(19) "12 31 2015 10 54 30"
Output for 5.3.26 - 5.3.27, 5.4.16 - 5.4.19
string(19) "12 31 2015 10 54 31"
Output for 5.3.20 - 5.3.25, 5.4.10 - 5.4.15
string(19) "12 31 2015 10 54 32"