3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dropOffDateTime = \DateTime::createFromFormat( 'U', strtotime( $this->dateFormat( $reservation->getDropOffDatetime(), IntlDateFormatter::FULL, IntlDateFormatter::MEDIUM ) ) ); echo $dropOffDateTime;
based on t7R6O
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/uUSLc:6 Stack trace: #0 {main} thrown in /in/uUSLc on line 6
Process exited with code 255.
Output for 5.3.18 - 5.6.21
Fatal error: Using $this when not in object context in /in/uUSLc on line 6
Process exited with code 255.