3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime("2013-02-20"); $date->setDate($date->format('Y'), 10, $date->format('d')); echo $date->format('Y-m-d')
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/5m7kv on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/5m7kv on line 4
Process exited with code 255.