3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = mktime(23, 59, 59, 09, 06, 2013); $format1 = "%H:%m %p"; $format2 = "%H:%m %P"; var_dump(strftime($format1, $time); assert(strftime($format1, $time) === '11:59 PM'); // as documented on php.net/strftime, %p => PM assert(strftime($format2, $time) === '11:59 pm'); // and %P => pm assert(strptime($format1, '11:59 PM') !== false); assert(strptime($format2, '11:59 pm') !== false);
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected ';' in /in/1AtNe on line 8
Process exited with code 255.