3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php new DateInterval('P'.$result['key_lifetime_hours'].'H');
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: result in /in/RqE6Y on line 3 Fatal error: Uncaught Exception: DateInterval::__construct(): Unknown or bad format (PH) in /in/RqE6Y:3 Stack trace: #0 /in/RqE6Y(3): DateInterval->__construct('PH') #1 {main} thrown in /in/RqE6Y on line 3
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Notice: Undefined variable: result in /in/RqE6Y on line 3 Fatal error: Uncaught exception 'Exception' with message 'DateInterval::__construct(): Unknown or bad format (PH)' in /in/RqE6Y:3 Stack trace: #0 /in/RqE6Y(3): DateInterval->__construct('PH') #1 {main} thrown in /in/RqE6Y on line 3
Process exited with code 255.