3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = new DateTime('2020-05-28 13:00'); $end = new DateTime('2020-05-28 15:30'); $timeRanges = []; while($begin < $end) { $output = $begin->format('H:i') . " - "; $begin->modify('+15 minutes'); /** Note, it modifies time by 15 minutes */ $output .= $begin->format('H:i'); $timeRanges[] = $output; } print_r($timeRanges);

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.0110.00716.75
8.3.50.0030.01018.20
8.3.40.0080.00619.09
8.3.30.0070.00718.79
8.3.20.0080.00024.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.180.0070.00725.92
8.2.170.0120.00322.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00421.21
8.2.110.0090.00020.53
8.2.100.0030.00818.03
8.2.90.0030.00518.00
8.2.80.0040.00419.03
8.2.70.0000.00818.15
8.2.60.0040.00417.88
8.2.50.0000.00817.88
8.2.40.0000.00818.30
8.2.30.0040.00419.32
8.2.20.0040.00418.14
8.2.10.0040.00419.50
8.2.00.0040.00419.43
8.1.280.0080.01225.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00324.03
8.1.230.0000.01120.91
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.60
8.1.190.0040.00417.47
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00719.13
8.1.150.0070.00019.04
8.1.140.0000.00718.86
8.1.130.0000.00717.77
8.1.120.0030.00517.72
8.1.110.0060.00317.70
8.1.100.0040.00417.68
8.1.90.0040.00417.72
8.1.80.0050.00617.71
8.1.70.0070.00517.71
8.1.60.0080.00617.71
8.1.50.0100.00417.69
8.1.40.0070.00617.66
8.1.30.0100.00417.83
8.1.20.0090.00717.74
8.1.10.0100.00517.64
8.1.00.0090.00717.68
8.0.300.0000.00818.77
8.0.290.0030.00617.00
8.0.280.0000.00818.61
8.0.270.0050.00217.11
8.0.260.0030.00517.09
8.0.250.0070.00317.11
8.0.240.0060.00317.30
8.0.230.0040.00417.23
8.0.220.0020.00617.15
8.0.210.0070.00217.11
8.0.200.0100.00217.14
8.0.190.0050.00517.18
8.0.180.0050.00517.13
8.0.170.0060.00617.20
8.0.160.0110.00017.17
8.0.150.0060.00817.03
8.0.140.0110.00317.11
8.0.130.0080.00415.88
8.0.120.0060.00617.04
8.0.110.0100.00217.12
8.0.100.0080.00517.10
8.0.90.0100.00517.03
8.0.80.0110.00617.04
8.0.70.0090.00517.13
8.0.60.0110.00117.15
8.0.50.0070.00617.06
8.0.30.0110.00817.14
8.0.20.0110.00817.18
8.0.10.0160.00417.27
8.0.00.0120.00617.18
7.4.330.0000.00515.55
7.4.320.0000.00716.81
7.4.300.0010.00716.69
7.4.290.0050.00616.79
7.4.280.0090.00416.70
7.4.270.0100.00316.71
7.4.260.0070.00415.58
7.4.250.0090.00416.70
7.4.240.0060.00516.71
7.4.230.0070.00516.61
7.4.220.0070.00216.71
7.4.210.0070.00816.78
7.4.200.0090.00316.81
7.4.190.0140.00216.60
7.4.180.0100.00516.79
7.4.160.0110.00816.81
7.4.150.0120.01016.69
7.4.140.0220.00416.59
7.4.130.0130.00916.69
7.4.120.0130.00716.65
7.4.110.0110.00816.63
7.4.100.0140.00516.70
7.4.90.0130.00816.67
7.4.80.0140.00717.33
7.4.70.0120.00816.69
7.4.60.0140.00616.62
7.4.50.0150.00516.57
7.4.40.0180.00716.61
7.4.30.0110.00816.64
7.4.20.0130.00816.62
7.4.10.0120.00816.65
7.4.00.0130.00816.70
7.3.330.0100.00416.36
7.3.320.0080.00615.29
7.3.310.0120.00216.48
7.3.300.0100.00416.44
7.3.290.0140.00216.34
7.3.280.0100.00816.43
7.3.270.0150.00616.48
7.3.260.0110.00816.49
7.3.250.0120.00716.56
7.3.240.0120.00616.51
7.3.230.0110.00816.52
7.3.220.0130.00516.38
7.3.210.0120.00616.46
7.3.200.0110.00716.49
7.3.190.0130.00616.45
7.3.180.0220.00516.53
7.3.170.0150.00816.41
7.3.160.0130.00616.50
7.3.150.0140.00616.44
7.3.140.0120.00816.45
7.3.130.0100.00916.50
7.3.120.0120.00616.51
7.3.110.0100.00816.35
7.3.100.0120.00716.42
7.3.90.0090.00916.61
7.3.80.0150.00416.47
7.3.70.0120.00716.47
7.3.60.0110.00916.62
7.3.50.0140.00516.57
7.3.40.0170.00216.54
7.3.30.0140.00516.45
7.3.20.0140.00516.96
7.3.10.0130.00516.88
7.3.00.0130.00417.01
7.2.340.0130.00716.66
7.2.330.0130.00716.68
7.2.320.0130.00716.63
7.2.310.0150.00616.63
7.2.300.0120.00816.69
7.2.290.0150.00516.81
7.2.280.0150.00616.71
7.2.270.0140.00616.65
7.2.260.0140.00716.81
7.2.250.0130.00616.82
7.2.240.0130.00716.70
7.2.230.0160.00416.68
7.2.220.0160.00516.68
7.2.210.0140.00716.79
7.2.200.0190.00316.83
7.2.190.0100.01316.68
7.2.180.0120.00816.62
7.2.170.0130.00716.72
7.2.160.0140.00516.77
7.2.150.0160.00517.20
7.2.140.0150.00517.23
7.2.130.0160.00517.48
7.2.120.0120.00717.32
7.2.110.0150.00517.39
7.2.100.0160.00617.35
7.2.90.0330.00417.29
7.2.80.0130.01017.15
7.2.70.0150.00717.29
7.2.60.0180.00417.26
7.2.50.0220.00517.33
7.2.40.0140.00717.33
7.2.30.0130.00817.38
7.2.20.0160.00617.38
7.2.10.0220.00617.38
7.2.00.0120.00717.35

preferences:
59.73 ms | 401 KiB | 5 Q