3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $formatter = \IntlDateFormatter::create( 'en_US', null, IntlDateFormatter::SHORT, 'Asia/Sakhalin' ); var_dump($formatter->format(unserialize('O:8:"DateTime":3:{s:4:"date";s:26:"2017-07-03 00:00:00.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:13:"Asia/Sakhalin";}')));
Output for 5.6.20 - 5.6.30, 7.0.5 - 7.2.6, 7.3.0rc3
string(32) "Monday, July 3, 2017 at 12:00 AM"
Output for 7.3.0alpha1 - 7.3.0beta1
Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /in/2fq56:3 Stack trace: #0 {main} thrown in /in/2fq56 on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.19, 7.0.0 - 7.0.4
string(31) "Monday, July 3, 2017 at 1:00 AM"
Output for hhvm-3.15.4
Fatal error: Uncaught TypeError: Argument 2 passed to IntlDateFormatter::__construct() must be an instance of int, null given in /in/2fq56:8 Stack trace: #0 (): IntlDateFormatter->__construct() #1 /in/2fq56(8): IntlDateFormatter::create() #2 {main}
Process exited with code 255.