3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "datetime: " . date('Y-m-d H:i:s') . "\n"; echo "datetime with offset: " . date('Y-m-d H:i:s', date('Y-m-d H:i:s') + 32400); echo "date now: " . date('ymd');
based on t88Rv
Output for 7.1.0 - 7.2.0
datetime: 2016-01-07 22:24:31 Notice: A non well formed numeric value encountered in /in/rvKfQ on line 3 datetime with offset: 1970-01-01 10:33:36date now: 160107
Output for 5.5.0 - 7.0.20
datetime: 2016-01-07 22:24:31 datetime with offset: 1970-01-01 10:33:36date now: 160107