3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = time(); $date = date(DATE_FORMAT_SHORT, $time); $d = $time - strtotime($date); var_dump($d);
Output for 7.2.0
Warning: Use of undefined constant DATE_FORMAT_SHORT - assumed 'DATE_FORMAT_SHORT' (this will throw an Error in a future version of PHP) in /in/7TsZ1 on line 4 int(1447690306)
Output for 5.5.0 - 7.1.10
Notice: Use of undefined constant DATE_FORMAT_SHORT - assumed 'DATE_FORMAT_SHORT' in /in/7TsZ1 on line 4 int(1447690306)