Fatal error: Uncaught TypeError: Unsupported operand types: DateTime - DateTime in /in/q6L5o:6
Stack trace:
#0 {main}
thrown in /in/q6L5o on line 6
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Notice: Object of class DateTime could not be converted to number in /in/q6L5o on line 6
Notice: Object of class DateTime could not be converted to number in /in/q6L5o on line 6
Warning: Use of undefined constant d - assumed 'd' (this will throw an Error in a future version of PHP) in /in/q6L5o on line 6
Notice: Trying to access array offset on value of type int in /in/q6L5o on line 6
Hello
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant d - assumed 'd' (this will throw an Error in a future version of PHP) in /in/q6L5o on line 6
Hello
Output for 7.3.12 - 7.3.31
Notice: Object of class DateTime could not be converted to number in /in/q6L5o on line 6
Notice: Object of class DateTime could not be converted to number in /in/q6L5o on line 6
Warning: Use of undefined constant d - assumed 'd' (this will throw an Error in a future version of PHP) in /in/q6L5o on line 6
Hello
Output for 7.2.0 - 7.2.33
Notice: Object of class DateTime could not be converted to int in /in/q6L5o on line 6
Notice: Object of class DateTime could not be converted to int in /in/q6L5o on line 6
Warning: Use of undefined constant d - assumed 'd' (this will throw an Error in a future version of PHP) in /in/q6L5o on line 6
Hello
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
Notice: Object of class DateTime could not be converted to int in /in/q6L5o on line 6
Notice: Object of class DateTime could not be converted to int in /in/q6L5o on line 6
Notice: Use of undefined constant d - assumed 'd' in /in/q6L5o on line 6
Hello