3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(new DateTimeZone('+1'));
Output for 5.6.0 - 5.6.30, 7.1.0 - 7.3.0alpha1
DateTimeZone Object ( [timezone_type] => 1 [timezone] => +01:00 )
Output for hhvm-3.22.0
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (+1)' in /in/mQnB0:-1 Stack trace: #0 /in/mQnB0(-1): DateTimeZone->__construct() #1 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (+1)' in /in/mQnB0:3 Stack trace: #0 /in/mQnB0(3): DateTimeZone->__construct() #1 {main}
Process exited with code 255.