3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ddtcounter1="2014-03-06 20:20:30"; $ddtcounter2="2014-03-07 21:20:30"; $today = new DateTime($ddtcounter2); $pastDate = $today->diff(new DateTime($ddtcounter1)); echo $pastDate->i, $pastdate->h
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/K9FIb on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/K9FIb on line 10
Process exited with code 255.

preferences:
184.57 ms | 1395 KiB | 63 Q