3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = mktime(23, 59, 59, 09, 06, 2013); $format1 = "%H:%m %p"; $format2 = "%H:%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($format1, '11:59 PM') === false); assert(strptime($format1, '11:59 pm') === 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.35, 5.6.0 - 5.6.28
Warning: assert(): Assertion failed in /in/X6ZJh on line 8 Warning: assert(): Assertion failed in /in/X6ZJh on line 9
Output for 5.0.0 - 5.0.5
Warning: assert(): Assertion failed in /in/X6ZJh on line 8 Warning: assert(): Assertion failed in /in/X6ZJh on line 9 Fatal error: Call to undefined function strptime() in /in/X6ZJh on line 11
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: assert(): Assertion failed in /in/X6ZJh on line 8 Warning: assert(): Assertion failed in /in/X6ZJh on line 9 Fatal error: Call to undefined function: strptime() in /in/X6ZJh on line 11
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Warning: assert(): Assertion failed in /in/X6ZJh on line 8 Warning: assert(): Assertion failed in /in/X6ZJh on line 9 Fatal error: Call to undefined function: strptime() in /in/X6ZJh on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: assert() [http://www.php.net/function.assert]: Assertion failed in /in/X6ZJh on line 8 Warning: assert() [http://www.php.net/function.assert]: Assertion failed in /in/X6ZJh on line 9 Fatal error: Call to undefined function: strptime() in /in/X6ZJh on line 11

preferences:
251.28 ms | 1387 KiB | 193 Q