3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh $date = new DateTimeImmutable(123456789); var_dump($date->format('Y-m-d H:i:s')); var_dump($date);
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '$date' (T_VARIABLE) in /in/33c9E on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.29
<?hh $date = new DateTimeImmutable(123456789); var_dump($date->format('Y-m-d H:i:s')); var_dump($date);