3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new \Datetime("-10 year"); echo $date->format("time");
based on NF1DJ
Output for 5.4.45, 5.6.28, 7.0.20 - 7.2.0
305511Europe/Amsterdam
Output for 7.0.6
312605Europe/Amsterdam
Output for 7.0.5
304804Europe/Amsterdam
Output for 7.0.4
314003Europe/Amsterdam
Output for 7.0.3
315703Europe/Amsterdam
Output for 7.0.2
310603Europe/Amsterdam
Output for 7.0.1
313303Europe/Amsterdam
Output for 7.0.0
312803Europe/Amsterdam
Output for 5.6.21
313505Europe/Amsterdam
Output for 5.6.20
304904Europe/Amsterdam
Output for 5.6.19
315203Europe/Amsterdam
Output for 5.5.33, 5.6.18
314203Europe/Amsterdam
Output for 5.6.17
311603Europe/Amsterdam
Output for 5.6.16
311703Europe/Amsterdam
Output for 5.6.15
310703Europe/Amsterdam
Output for 5.6.14
305504Europe/Amsterdam
Output for 5.6.13
302704Europe/Amsterdam
Output for 5.6.12
305404Europe/Amsterdam
Output for 5.6.11
301804Europe/Amsterdam
Output for 5.6.8, 5.6.10
302104Europe/Amsterdam
Output for 5.6.9
303004Europe/Amsterdam
Output for 5.5.35
315405Europe/Amsterdam
Output for 5.5.30, 5.5.34
305904Europe/Amsterdam
Output for 5.5.32
313103Europe/Amsterdam
Output for 5.5.31
312103Europe/Amsterdam
Output for 5.5.29
304604Europe/Amsterdam
Output for 5.5.28
300904Europe/Amsterdam
Output for 5.5.27
305204Europe/Amsterdam
Output for 5.5.26
300304Europe/Amsterdam
Output for 5.5.25
302404Europe/Amsterdam
Output for 5.5.24
313905Europe/Amsterdam
Output for 5.3.20 - 5.4.44
305611Europe/Amsterdam