3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $newDate = strtotime("247"); $formattedTime = date('h:i:s a', $newDate); echo $formattedDate; echo " \n"; echo $formattedTime;
Output for 5.1.0 - 7.1.0
Notice: Undefined variable: formattedDate in /in/UOrDC on line 4 01:00:00 am
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: formattedDate in /in/UOrDC on line 4 02:47:00 am
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: formattedDate in /in/UOrDC on line 4 02:47:00 am