time(); // current Unix timestamp
strtotime('2025-01-01'); // string → timestamp
date('Y-m-d', 1735689600); // timestamp → string
// Carbon (recommended)
Carbon::now()->timestamp;
Carbon::createFromTimestamp(1735689600)->toDateString();
A 32-bit signed integer overflows on 19 January 2038 at 03:14:07 UTC. In PHP with 64-bit integers — no problem. But in old databases with a TIMESTAMP column (32-bit) — there is one.