3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime('+21 days'); $date->modify('wednesday'); var_dump($date);

preferences:
30.92 ms | 404 KiB | 5 Q