3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php $di = new DateInterval('P1D'); echo $di->days . "\n"; $di2 = new DateInterval('P1YT1H'); echo $di2->days;
Output for 5.4.20
Parse error: syntax error, unexpected '<' in /in/PLHTD on line 2
Process exited with code 255.
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected '<' in /in/f0T0h on line 2
Process exited with code 255.