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.4.130.0130.00717.86
8.4.120.0130.00522.26
8.4.110.0070.00522.41
8.4.100.0050.00417.88
8.4.90.0080.00518.72
8.4.80.0090.01118.06
8.4.70.0060.00317.79
8.4.60.0150.00520.66
8.4.50.0100.01019.57
8.4.40.0140.00619.71
8.4.30.0090.00922.65
8.4.20.0130.00720.62
8.4.10.0000.00823.70
8.3.260.0160.00416.73
8.3.250.0060.00218.84
8.3.240.0120.00816.89
8.3.230.0030.00516.79
8.3.220.0140.00417.43
8.3.210.0090.00516.91
8.3.200.0050.00316.68
8.3.190.0070.01217.32
8.3.180.0100.00916.46
8.3.170.0100.00718.89
8.3.160.0090.00918.57
8.3.150.0120.00620.60
8.3.140.0090.00619.00
8.3.130.0080.00018.68
8.3.120.0040.00819.09
8.3.110.0100.00718.40
8.3.100.0050.00316.58
8.3.90.0070.00026.77
8.3.80.0070.00416.63
8.3.70.0140.00718.43
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.290.0130.00820.39
8.2.280.0140.00618.73
8.2.270.0120.00317.09
8.2.260.0070.01018.53
8.2.250.0120.00316.79
8.2.240.0080.00819.13
8.2.230.0030.01320.94
8.2.220.0080.00024.06
8.2.210.0000.00926.77
8.2.200.0070.00316.38
8.2.190.0190.00318.29
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.330.0080.01021.91
8.1.320.0120.00816.05
8.1.310.0090.00618.37
8.1.300.0090.00018.52
8.1.290.0060.00330.84
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:
27.17 ms | 403 KiB | 5 Q