3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $weekday = date('w'); $date = date('m-d-Y'); $time = date('g:00 a', strtotime('now')); echo $weekday; echo "<br /><br /><br /><br /><br />"; echo $date; echo "<br /><br /><br /><br /><br />"; echo $time; ?>
Output for 4.3.0 - 4.4.9, 5.0.3 - 7.1.0
5<br /><br /><br /><br /><br />02-08-2013<br /><br /><br /><br /><br />2:00 pm
Output for 5.0.0 - 5.0.2
5<br /><br /><br /><br /><br />02-08-2013<br /><br /><br /><br /><br />12:00 am