3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = mktime(23, 59, 59, 09, 06, 2013); $format1 = "%I:%M %p"; $format2 = "%I:%M %P"; 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("11:59 PM", $format1) !== false'); assert('strptime("11:59 pm", $format2) !== false'); assert('strptime("11:59 pm", $format1) === false'); assert('strptime("11:59 PM", $format2) === false');
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.36, 5.6.0 - 5.6.28
Warning: assert(): Assertion "strptime("11:59 pm", $format2) !== false" failed in /in/iqJAp on line 11 Warning: assert(): Assertion "strptime("11:59 pm", $format1) === false" failed in /in/iqJAp on line 13
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function strptime() in /in/iqJAp(10) : 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/iqJAp(10) : assert code on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: strptime() in /in/iqJAp(10) : assert code on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: strptime() in /in/iqJAp(10) : assert code on line 1

preferences:
232.67 ms | 1403 KiB | 196 Q