3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = time(); $nextDay = $today + 86400 * 45; $day = date("d", $nextDay); echo $day;
Output for 7.4.0 - 7.4.27, 8.0.1 - 8.0.14, 8.1.0 - 8.1.1
24

preferences:
42.76 ms | 406 KiB | 5 Q