3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $disconnect = "2015-11-07"; $disco_date = date_create($disconnet); $date_fail = date_add($disco_date, date_interval_create_from_date_string("60 days")); echo $date_fail; $date_recorded = "2015-11-11 05:47:10"; // if($date_fail <= $date_recorded) // { // echo "Fail"; // } // else // echo "good to go";
based on HscSs
Output for 7.1.0 - 7.2.0
Notice: Undefined variable: disconnet in /in/qE1N6 on line 3 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/qE1N6 on line 5
Process exited with code 255.
Output for 5.3.19 - 7.0.20
Notice: Undefined variable: disconnet in /in/qE1N6 on line 3 Catchable fatal error: Object of class DateTime could not be converted to string in /in/qE1N6 on line 5
Process exited with code 255.