3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = new DateTime('00:08:27'); $date2 = new DateTime('00:01:32'); $diff = $date2->diff($date1); print_r( $diff )
Output for 7.1.0 - 7.1.14, 7.2.0 - 7.2.2
Parse error: syntax error, unexpected end of file in /in/UfDiR on line 6
Process exited with code 255.

preferences:
185.3 ms | 1395 KiB | 25 Q