3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php d1 = new DateTime('1 march 2014 04:13'); d2 = new DateTime('2 march 2014 05:13'); print (d2 - d1)[d]; print "Hello"; ?>
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected '=' in /in/O9q8u on line 3
Process exited with code 255.