3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date("H:i:s Y-m-d", time()); echo "\n"; echo date("w", mktime(0, 0, 0, MM, dd, yyyy));//date("H:i:s Y-m-d", strtotime('this week', time()));
Output for 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
14:04:18 2015-05-03 Warning: Use of undefined constant MM - assumed 'MM' (this will throw an Error in a future version of PHP) in /in/123sR on line 5 Warning: Use of undefined constant dd - assumed 'dd' (this will throw an Error in a future version of PHP) in /in/123sR on line 5 Warning: Use of undefined constant yyyy - assumed 'yyyy' (this will throw an Error in a future version of PHP) in /in/123sR on line 5 Warning: mktime() expects parameter 4 to be int, string given in /in/123sR on line 5 4
Output for 7.2.0 - 7.2.26
14:04:18 2015-05-03 Warning: Use of undefined constant MM - assumed 'MM' (this will throw an Error in a future version of PHP) in /in/123sR on line 5 Warning: Use of undefined constant dd - assumed 'dd' (this will throw an Error in a future version of PHP) in /in/123sR on line 5 Warning: Use of undefined constant yyyy - assumed 'yyyy' (this will throw an Error in a future version of PHP) in /in/123sR on line 5 Warning: mktime() expects parameter 4 to be integer, string given in /in/123sR on line 5 4
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
14:04:18 2015-05-03 Notice: Use of undefined constant MM - assumed 'MM' in /in/123sR on line 5 Notice: Use of undefined constant dd - assumed 'dd' in /in/123sR on line 5 Notice: Use of undefined constant yyyy - assumed 'yyyy' in /in/123sR on line 5 Warning: mktime() expects parameter 4 to be integer, string given in /in/123sR on line 5 4
Output for 5.1.1 - 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.38, 5.6.0 - 5.6.40
14:04:18 2015-05-03 Notice: Use of undefined constant MM - assumed 'MM' in /in/123sR on line 5 Notice: Use of undefined constant dd - assumed 'dd' in /in/123sR on line 5 Notice: Use of undefined constant yyyy - assumed 'yyyy' in /in/123sR on line 5 Warning: mktime() expects parameter 4 to be long, string given in /in/123sR on line 5 4
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/123sR on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5
14:04:18 2015-05-03 Notice: Use of undefined constant MM - assumed 'MM' in /in/123sR on line 5 Notice: Use of undefined constant dd - assumed 'dd' in /in/123sR on line 5 Notice: Use of undefined constant yyyy - assumed 'yyyy' in /in/123sR on line 5 4

preferences:
213.33 ms | 402 KiB | 325 Q