3v4l.org

run code in 300+ PHP versions simultaneously
<?php $incorrect = '1999-11-30'; $time = date('Y-m-d',strtotime('00-00-00 00:00:00')); var_dump($time === $incorrect); var_dump($strtotime($incorrent)); var_dump($strtotime('00-00-00'));
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
bool(true) Warning: Undefined variable $strtotime in /in/g2M4P on line 6 Fatal error: Uncaught Error: Value of type null is not callable in /in/g2M4P:6 Stack trace: #0 {main} thrown in /in/g2M4P on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
bool(true) Notice: Undefined variable: strtotime in /in/g2M4P on line 6 Fatal error: Uncaught Error: Function name must be a string in /in/g2M4P:6 Stack trace: #0 {main} thrown in /in/g2M4P on line 6
Process exited with code 255.
Output for 7.3.32 - 7.3.33
bool(true) Fatal error: Uncaught Error: Function name must be a string in /in/g2M4P:6 Stack trace: #0 {main} thrown in /in/g2M4P on line 6
Process exited with code 255.
Output for 5.5.0 - 5.5.37, 5.6.0 - 5.6.28
bool(true) Notice: Undefined variable: strtotime in /in/g2M4P on line 6 Fatal error: Function name must be a string in /in/g2M4P on line 6
Process exited with code 255.

preferences:
187 ms | 401 KiB | 216 Q