3v4l.org

run code in 300+ PHP versions simultaneously
<?php const WEEKDAYS = ['M', 'T', 'W', 'Th', 'F', 'S', 'Su']; foreach (WEEKDAYS as $weekdayKey => $weekday) { echo '<div class="form-check form-check-inline">' . PHP_EOL . ' <input class="form-check-input" type="checkbox" id="classDays' . $weekdayKey . '" name="classDays[]" value="' . $weekday . '">' . PHP_EOL . ' <label class="form-check-label" for="classDays[]">' . PHP_EOL . ' ' . date('l', strtotime('2022-01-0' . ($weekdayKey + 3))) . PHP_EOL . ' </label>' . PHP_EOL . '</div>' . PHP_EOL; }

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.3.60.0120.00618.30
8.3.50.0040.01120.11
8.3.40.0150.00318.91
8.3.30.0160.00018.79
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.180.0110.01125.92
8.2.170.0110.00418.89
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0130.00626.16
8.2.120.0000.01018.91
8.2.110.0090.00020.38
8.2.100.0060.00320.56
8.1.280.0090.00625.92
8.1.270.0080.00024.00
8.1.260.0150.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00418.68
8.1.230.0060.00320.48
7.4.300.0100.00116.53

preferences:
31.94 ms | 400 KiB | 5 Q