3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $local = new DateTimeZone('America/Los_Angeles'); $totSecs = $local->getOffset(new DateTime()); $totSecs -= .5 * 3600; $hrs = floor($totSecs / (60 * 60)); $mins = floor(($totSecs - $hrs * 60 * 60) / 60); echo substr('0' . $hrs . ':' . $mins;
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected ';' in /in/lMirv on line 7
Process exited with code 255.