3v4l.org

run code in 300+ PHP versions simultaneously
<?php $disconnect = "2015-11-07"; $disco_date = date_create($disconnet); $date_fail = date_add($disco_date, date_interval_create_from_date_string("60 days")); $date_recorded = "2015-11-11 05:47:10"; if($date_fail <= $date_recorded) { echo "Fail"; } else echo "good to go";
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined variable $disconnet in /in/HscSs on line 3 Deprecated: date_create(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/HscSs on line 3 good to go
Output for 8.0.0 - 8.0.30
Warning: Undefined variable $disconnet in /in/HscSs on line 3 good to go
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: disconnet in /in/HscSs on line 3 good to go
Output for 7.3.32 - 7.3.33
good to go

preferences:
159.86 ms | 401 KiB | 213 Q