<?php
$x = new DateTimeImmutable();
$y = new DateTimeImmutable();
$y = $y->add(new DateInterval("P1D"));
var_dump((true ? $x : $y)->format('U'));
- Output for 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- string(10) "1446998775"
- Output for 7.0.6
- string(10) "1462293051"
- Output for 7.0.5
- string(10) "1459659356"
- Output for 7.0.4
- string(10) "1457631773"
- Output for 7.0.3
- string(10) "1458327094"
- Output for 7.0.2
- string(10) "1458694736"
- Output for 7.0.1
- string(10) "1458794295"
- Output for 7.0.0
- string(10) "1459056861"
- Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
- Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/vcgLq on line 8
Process exited with code 255.
preferences:
165.82 ms | 402 KiB | 225 Q