3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $initial = date(strtotime()); echo "\nDOB: " . date("d-m-Y", $initial); echo "\nCHECK IN/OUT: " . date("d-M-Y", $initial);
based on DCYNc
Output for 7.0.0 - 7.2.0
Warning: strtotime() expects at least 1 parameter, 0 given in /in/bk8B0 on line 3 Warning: date() expects parameter 2 to be integer, string given in /in/bk8B0 on line 5 DOB: Warning: date() expects parameter 2 to be integer, string given in /in/bk8B0 on line 6 CHECK IN/OUT:
Output for 5.4.0 - 5.6.28
Warning: strtotime() expects at least 1 parameter, 0 given in /in/bk8B0 on line 3 Warning: date() expects parameter 2 to be long, string given in /in/bk8B0 on line 5 DOB: Warning: date() expects parameter 2 to be long, string given in /in/bk8B0 on line 6 CHECK IN/OUT: