3v4l.org

run code in 300+ PHP versions simultaneously
<?php while(1){ sleep(1); echo date('m/d/Y', strtotime("20061215")); echo date(now); }
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
12/15/2006 Fatal error: Uncaught Error: Undefined constant "now" in /in/snhjQ:5 Stack trace: #0 {main} thrown in /in/snhjQ on line 5
Process exited with code 255.
Output for 7.2.6 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33
12/15/2006 Warning: Use of undefined constant now - assumed 'now' (this will throw an Error in a future version of PHP) in /in/snhjQ on line 5 12014212/15/2006 Warning: Use of undefined constant now - assumed 'now' (this will throw an Error in a future version of PHP) in /in/snhjQ on line 5 120142
Process exited with code 137.
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.24, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
12/15/2006 Notice: Use of undefined constant now - assumed 'now' in /in/snhjQ on line 5 12014212/15/2006 Notice: Use of undefined constant now - assumed 'now' in /in/snhjQ on line 5 120142
Process exited with code 137.

preferences:
175.87 ms | 402 KiB | 294 Q