3v4l.org

run code in 200+ PHP versions simultaneously
<?php $b = (new \DateTime((new \DateTimeImmutable())->modify("next Monday")->format("Y-m-d H:i:s"))); var_dump($a, $b, $c);
based on bjqZh