3v4l.org

run code in 500+ PHP versions simultaneously
<?php $someDateStr = 'May 14'; $start = new DateTimeImmutable($someDateStr); $end = new DateTimeImmutable('@' . strtotime('Saturday', $start->getTimestamp()) ); // the Saturday following `$start`

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.10.0130.00817.07

preferences:
43.22 ms | 480 KiB | 5 Q