3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $expiration_date_time = date_add(new DateTime(), new DateInterval('P1D')); echo $expiration_date_time->format('Y-m-d H:i:s') : "0";
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected ':', expecting ',' or ';' in /in/BVbPW on line 4
Process exited with code 255.