3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php$date = new DateTime('2006-12-12');$date->modify('+1 day');echo $date->format('Y-m-d');
based on lLjbX
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected '$date' (T_VARIABLE) in /in/KBXjo on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.29
<?php$date = new DateTime('2006-12-12');$date->modify('+1 day');echo $date->format('Y-m-d');