3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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'));
based on 9BmIr
Output for 7.0.0 - 7.2.0
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 5.5.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.