3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = new DateTime('2013-11-06 10:00:00 UTC'); $interval = new DateInterval'P1D/14:00'); $subject->sub($interval); var_dump($subject);
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected ''P1D/14:00'' (T_CONSTANT_ENCAPSED_STRING) in /in/ZJnfD on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/ZJnfD on line 4
Process exited with code 255.