3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = new DateTimeImmutable(); $M = $today->modify("next monday"); echo "next monday: {$M->format("m/d/y")}\n"; $W = $M->modify("next wednesday"); echo "next wednesday: {$W->format("m/d/y")}\n"; $F = $W->modify("next friday"); echo "next friday: {$F->format("m/d/y")}\n";
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
next monday: 03/23/26 next wednesday: 03/25/26 next friday: 03/27/26

preferences:
62.02 ms | 703 KiB | 4 Q