3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); echo $date->format('YmdHi')."\n"; $date->modify('-30 minutes'); echo $date->format('YmdHi')."\n";
based on QADib
Output for 5.3.21 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
201601081101 201601081031
Output for 7.0.6
201605211331 201605211301
Output for 7.0.5
201604030931 201604030901
Output for 7.0.4
201603102138 201603102108
Output for 7.0.3
201603182303 201603182233
Output for 7.0.2
201603230516 201603230446
Output for 7.0.1
201603240822 201603240752
Output for 7.0.0
201603271016 201603270946
Output for 5.6.21
201605021625 201605021555
Output for 5.6.20
201604100833 201604100803
Output for 5.6.19
201603080546 201603080516
Output for 5.6.18
201603151444 201603151414
Output for 5.6.17
201603200217 201603200147
Output for 5.6.16
201603281105 201603281035
Output for 5.6.15
201603291154 201603291124
Output for 5.6.14
201604141737 201604141707
Output for 5.6.13
201604151816 201604151746
Output for 5.6.12
201604200845 201604200815
Output for 5.6.11
201604241511 201604241441
Output for 5.6.10
201604251717 201604251647
Output for 5.6.9
201604272243 201604272213
Output for 5.6.8
201604300713 201604300643
Output for 5.5.35
201605230226 201605230156
Output for 5.5.34
201604111047 201604111017
Output for 5.5.33
201603090845 201603090815
Output for 5.5.32
201603171841 201603171811
Output for 5.5.31
201603210526 201603210456
Output for 5.5.30
201604011346 201604011316
Output for 5.5.29
201604170834 201604170804
Output for 5.5.28
201604211204 201604211134
Output for 5.5.27
201604221342 201604221312
Output for 5.5.26
201604261958 201604261928
Output for 5.5.25
201604290324 201604290254
Output for 5.5.24
201605240947 201605240917