3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $firstDay = new DateTime('first day of this month'); $lastDay = new DateTime('last day of this month'); echo $firstDay->getTimestamp(); echo "<br/>"; echo $lastDay->getTimestamp();
based on t9H73
Output for 5.6.28, 7.0.20 - 7.2.0
1446368640<br/>1448874240
Output for 7.0.6
1462120089<br/>1464712089
Output for 7.0.5
1459486406<br/>1461992006
Output for 7.0.4
1456854007<br/>1459442407
Output for 7.0.3
1456858110<br/>1459446510
Output for 7.0.2
1456793759<br/>1459382159
Output for 7.0.1
1456806938<br/>1459395338
Output for 7.0.0
1456813911<br/>1459402311
Output for 5.6.21
1462102643<br/>1464694643
Output for 5.6.20
1459482764<br/>1461988364
Output for 5.6.19
1456797089<br/>1459385489
Output for 5.6.18
1456828488<br/>1459416888
Output for 5.6.17
1456870463<br/>1459458863
Output for 5.6.16
1456816748<br/>1459405148
Output for 5.6.15
1456819788<br/>1459408188
Output for 5.6.14
1459501255<br/>1462006855
Output for 5.6.13
1459517111<br/>1462022711
Output for 5.6.12
1459482861<br/>1461988461
Output for 5.6.11
1459505806<br/>1462011406
Output for 5.6.10
1459513178<br/>1462018778
Output for 5.6.9
1459531787<br/>1462037387
Output for 5.6.8
1459477317<br/>1461982917
Output for 5.5.35
1462128399<br/>1464720399
Output for 5.5.34
1459490679<br/>1461996279
Output for 5.5.33
1456806876<br/>1459395276
Output for 5.5.32
1456842605<br/>1459431005
Output for 5.5.31
1456794974<br/>1459383374
Output for 5.5.30
1459501413<br/>1462007013
Output for 5.5.29
1459482508<br/>1461988108
Output for 5.5.28
1459494483<br/>1462000083
Output for 5.5.27
1459500877<br/>1462006477
Output for 5.5.26
1459522938<br/>1462028538
Output for 5.5.25
1459547688<br/>1462053288
Output for 5.5.24
1462076868<br/>1464668868
Output for 5.4.45
1451648770<br/>1454240770
Output for 5.4.44
1451648771<br/>1454240771
Output for 5.4.43
1451648772<br/>1454240772
Output for 5.4.41 - 5.4.42
1451648773<br/>1454240773
Output for 5.4.40
1451648774<br/>1454240774
Output for 5.4.38 - 5.4.39
1451648775<br/>1454240775
Output for 5.4.36 - 5.4.37
1451648776<br/>1454240776
Output for 5.4.34 - 5.4.35
1451648777<br/>1454240777
Output for 5.4.32
1451648778<br/>1454240778
Output for 5.3.29, 5.4.30 - 5.4.31
1451648779<br/>1454240779
Output for 5.4.27 - 5.4.29
1451648780<br/>1454240780
Output for 5.4.24 - 5.4.26
1451648781<br/>1454240781
Output for 5.3.28, 5.4.22 - 5.4.23
1451648782<br/>1454240782
Output for 5.4.20 - 5.4.21
1451648783<br/>1454240783
Output for 5.3.27, 5.4.17 - 5.4.19
1451648784<br/>1454240784
Output for 5.3.24 - 5.3.26, 5.4.15 - 5.4.16
1451648785<br/>1454240785
Output for 5.3.21 - 5.3.23, 5.4.12 - 5.4.14
1451648786<br/>1454240786
Output for 5.3.19 - 5.3.20, 5.4.9 - 5.4.11
1451648787<br/>1454240787