3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = new DateTime("2014-03-07 15:30:00"); $diff = ($start->getTimestape() - time()) / 3600; echo $diff
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/BIk39 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/BIk39 on line 6
Process exited with code 255.