3v4l.org

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