3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = mktime(23, 59, 59, 09, 06, 2013); assert('strftime("%I:%M %p", $time) === "11:59 PM"'); // as documented on php.net/strftime, %p => PM assert('strftime("%I:%M %P", $time) === "11:59 pm"'); // and %P => pm assert('strptime("11:59 PM", "%I:%M %p") !== false'); assert('strptime("11:59 pm", "%I:%M %P") !== false'); assert('strptime("11:59 pm", "%I:%M %p") === false'); assert('strptime("11:59 PM", "%I:%M %P") === false');
Output for 5.3.28 - 5.3.29, 5.4.20 - 5.6.28, hhvm-3.12.0
Warning: assert(): Assertion "strptime("11:59 pm", "%I:%M %P") !== false" failed in /in/BkiHl on line 8 Warning: assert(): Assertion "strptime("11:59 pm", "%I:%M %p") === false" failed in /in/BkiHl on line 10
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.1.0 - 5.3.27, 5.4.0 - 5.4.19
Warning: assert(): Assertion "strptime("11:59 pm", "%I:%M %P") !== false" failed in /in/LVd4f on line 8 Warning: assert(): Assertion "strptime("11:59 pm", "%I:%M %p") === false" failed in /in/LVd4f on line 10
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function strptime() in /in/LVd4f(7) : assert code on line 1
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: strptime() in /in/LVd4f(7) : assert code on line 1
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: strptime() in /in/LVd4f(7) : assert code on line 1
Process exited with code 255.
Output for 4.3.1
Fatal error: Call to undefined function: strptime() in /in/LVd4f(7) : assert code on line 1
Output for 4.3.0
Fatal error: Call to undefined function: strptime() in /in/BkiHl(7) : assert code on line 1