3v4l.org

run code in 300+ PHP versions simultaneously
<?php print date_create('next week tuesday')->format('d-m-Y'."\n"); print date_create(' next week wednesday')->format('d-m-Y'."\n"); print date_create(' next week thursday')->format('d-m-Y'."\n"); print date_create(' next week friday')->format('d-m-Y'."\n"); print date_create(' next week saturday')->format('d-m-Y'."\n"); print date_create(' next week sunday')->format('d-m-Y'."\n"); print date_create(' next week monday')->format('d-m-Y'."\n"); print date_create(' +2 weeks tuesday')->format('d-m-Y'."\n");

preferences:
34.74 ms | 402 KiB | 5 Q