3v4l.org

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