3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new DateTime('2016-01-30'); $a - intval(str_replace("-", "", "1988-12-21")); echo $a;
based on A8MM2
Output for 7.1.0 - 7.2.0
Notice: Object of class DateTime could not be converted to int in /in/cRsoI on line 5 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/cRsoI on line 7
Process exited with code 255.
Output for 5.3.19 - 7.0.20
Notice: Object of class DateTime could not be converted to int in /in/cRsoI on line 5 Catchable fatal error: Object of class DateTime could not be converted to string in /in/cRsoI on line 7
Process exited with code 255.