<?php
$d1 = new \DateTimeImmutable('today 00:00', new \DateTimeZone('Europe/Prague'));
$d2 = new \DateTimeImmutable('tomorrow 00:00', new \DateTimeZone('Europe/London'));
var_dump($d1->diff($d2)->format('%yy,%mm,%dd,%hh,%im,%ss'));
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 4
Fatal error: Class 'DateTimeImmutable' not found in /in/iHNFJ on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 4
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/iHNFJ on line 6
Process exited with code 255.
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 4
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/iHNFJ on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/iHNFJ on line 4
Parse error: parse error in /in/iHNFJ on line 6
Process exited with code 255.