3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $datetime1 = new DateTime('2009-10-11'); $datetime2 = new DateTime('2009-10-13'); $interval = $datetime1->diff($datetime2); var_dump(property_exists($interval, 'm'), $interval)
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected end of file in /in/UIKUt on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/UIKUt on line 6
Process exited with code 255.