3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_month_first_day = new DateTime('first day of this month'); // first day of the current month $current_month_last_day = date('t'); // last day of the current month $interval = new DateInterval('P1D'); $period = new DatePeriod($current_month_first_day, $interval, $current_month_last_day - 1); print_r($period); ?> <!-- Sitting Date START --> <div class="sitting-days"> <h4 style="text-align:center;">Select Date</h4> <?php foreach ($period as $date){ ?> <div class="select-date" style="margin-right:30px; margin-top:20px;"> <input type="date" class="house-sitting-date" name="house_sitting_date[]" value="<?php echo $date->format("Y-m-d"); ?>"> </div> <?php } ?> </div> <!-- Sitting Date END -->

Abusive script

This script was stopped while abusing our resources

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.0.110.0000.00817.28
8.0.100.0040.00417.07
8.0.90.0030.00617.03
8.0.80.0100.00517.15
8.0.70.0040.00417.02
8.0.60.0040.00417.01
8.0.50.0080.00017.18
8.0.30.0060.01217.48
8.0.20.0090.01817.46
8.0.10.0040.00417.31
8.0.00.0100.01017.16
7.4.240.0000.00916.66
7.4.230.0030.00316.72
7.4.220.0020.00516.75
7.4.210.0090.00816.84
7.4.200.0000.00716.83
7.4.130.0150.00716.76
7.4.120.0070.01516.85
7.4.110.0070.01316.66
7.4.100.0060.01416.73
7.4.90.0080.01116.57
7.4.80.0160.00719.39
7.4.70.0070.01416.74
7.4.60.0080.01016.69
7.4.50.0100.00616.45
7.4.40.0060.01716.86
7.4.20.0090.01516.54
7.4.10.0060.01116.61
7.4.00.0070.01216.63
7.3.310.0050.00316.28
7.3.300.0000.00716.38
7.3.290.0090.00716.51
7.3.280.0000.01416.53
7.3.260.0130.00616.64
7.3.240.0100.00716.64
7.3.230.0090.00916.83
7.3.210.0100.00716.74
7.3.200.0060.01316.75
7.3.190.0070.01016.52
7.3.180.0110.00516.55
7.3.170.0170.01216.63
7.3.160.0140.00316.76
7.3.140.0110.00916.42
7.3.130.0090.01116.33
7.3.120.0140.00516.46
7.3.110.0100.00916.54
7.3.100.0090.01116.71
7.3.90.0100.00816.50
7.3.80.0150.00516.42
7.3.70.0100.00616.51
7.3.60.0100.00816.42
7.3.50.0110.00716.52
7.3.40.0110.00916.49
7.3.30.0130.00816.46
7.3.20.0200.01116.42
7.3.10.0150.00816.43
7.3.00.0110.01116.36
7.2.330.0060.01316.72
7.2.320.0070.01716.82
7.2.310.0000.01716.95
7.2.300.0110.00716.75
7.2.290.0150.00416.63
7.2.270.0070.01016.72
7.2.260.0080.01016.55
7.2.250.0100.01116.82
7.2.240.0150.00716.62
7.2.230.0080.01016.83
7.2.220.0080.01016.67
7.2.210.0080.01116.62
7.2.200.0100.01016.48
7.2.190.0120.00616.67
7.2.180.0150.00516.64
7.2.170.0150.00616.65
7.2.160.0100.01416.73
7.2.150.0130.01016.86
7.2.140.0180.00216.79
7.2.130.0110.00816.77
7.2.120.0120.01016.69
7.2.110.0160.00516.66
7.2.100.0150.00916.74
7.2.90.0140.01016.68
7.2.80.0160.00816.62
7.2.70.0170.00716.59
7.2.60.0150.01516.70
7.2.50.0080.01516.75
7.2.40.0110.01216.80
7.2.30.0140.00916.78
7.2.20.0140.00916.66
7.2.10.0130.01216.56
7.2.00.0120.00916.68

preferences:
42.36 ms | 403 KiB | 5 Q