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.4.140.0150.00917.58
8.4.130.0100.00818.95
8.4.120.0100.01023.91
8.4.110.0130.00820.58
8.4.100.0130.00718.79
8.4.90.0120.01022.36
8.4.80.0100.00817.80
8.4.70.0040.00818.20
8.4.60.0140.00618.70
8.4.50.0140.00219.70
8.4.40.0160.00517.80
8.4.30.0190.01018.25
8.4.20.0150.00918.75
8.4.10.0140.00519.06
8.3.270.0130.00616.71
8.3.260.0050.00318.55
8.3.250.0050.00318.90
8.3.240.0070.00717.32
8.3.230.0030.00618.32
8.3.220.0050.00218.96
8.3.210.0090.00916.81
8.3.200.0060.00316.62
8.3.190.0120.00719.00
8.3.180.0040.00518.60
8.3.170.0170.00316.70
8.3.160.0110.00616.77
8.3.150.0140.00617.96
8.3.140.0160.00317.55
8.3.130.0080.00717.40
8.3.120.0060.00718.59
8.3.110.0120.00718.82
8.3.100.0160.00420.47
8.3.90.0120.00821.55
8.3.80.0160.00218.00
8.3.70.0120.00516.62
8.3.60.0100.01016.50
8.3.50.0100.00821.86
8.3.40.0100.00718.24
8.3.30.0120.00418.03
8.3.20.0100.00320.84
8.3.10.0080.00421.13
8.3.00.0070.00221.94
8.2.290.0080.01120.64
8.2.280.0110.00720.33
8.2.270.0100.00716.90
8.2.260.0070.00617.77
8.2.250.0070.00516.59
8.2.240.0090.00516.91
8.2.230.0090.00419.57
8.2.220.0100.00827.05
8.2.210.0120.00721.74
8.2.200.0110.00217.71
8.2.190.0070.00816.84
8.2.180.0120.00421.38
8.2.170.0140.00320.30
8.2.160.0190.00220.33
8.2.150.0130.00421.75
8.2.140.0070.00521.04
8.2.130.0100.00221.98
8.2.120.0080.00419.40
8.2.110.0120.00120.05
8.2.100.0070.00717.77
8.2.90.0100.00317.82
8.2.80.0090.00418.39
8.2.70.0090.00417.87
8.2.60.0070.00417.78
8.2.50.0070.00417.88
8.2.40.0030.00818.00
8.2.30.0090.00218.46
8.2.20.0050.00517.97
8.2.10.0090.00218.63
8.2.00.0050.00518.60
8.1.330.0090.01021.90
8.1.320.0160.00716.47
8.1.310.0100.00317.41
8.1.300.0150.00017.29
8.1.290.0100.00323.48
8.1.280.0100.00921.15
8.1.270.0130.00120.74
8.1.260.0080.00521.87
8.1.250.0100.00322.90
8.1.240.0080.00620.62
8.1.230.0070.00619.15
8.1.220.0100.00217.58
8.1.210.0040.00818.09
8.1.200.0080.00317.52
8.1.190.0090.00217.35
8.1.180.0070.00417.71
8.1.170.0090.00317.44
8.1.160.0060.00818.17
8.1.150.0130.00018.11
8.1.140.0050.00718.14
8.1.130.0050.00717.51
8.1.120.0070.00417.55
8.1.110.0080.00517.56
8.1.100.0060.00517.52
8.1.90.0100.00217.62
8.1.80.0070.00517.66
8.1.70.0090.00517.61
8.1.60.0080.00617.56
8.1.50.0110.00417.56
8.1.40.0080.00617.57
8.1.30.0110.00317.76
8.1.20.0080.00817.71
8.1.10.0100.00517.55
8.1.00.0100.00517.53
8.0.300.0140.00417.69
8.0.290.0090.00316.94
8.0.280.0030.00917.65
8.0.270.0090.00316.93
8.0.260.0080.00416.95
8.0.250.0090.00417.05
8.0.240.0070.00617.03
8.0.230.0090.00217.00
8.0.220.0050.00416.97
8.0.210.0090.00217.00
8.0.200.0100.00317.06
8.0.190.0070.00516.97
8.0.180.0090.00316.98
8.0.170.0080.00617.08
8.0.160.0100.00317.07
8.0.150.0080.00616.92
8.0.140.0120.00217.00
8.0.130.0090.00416.10
8.0.120.0070.00516.89
8.0.110.0110.00217.03
8.0.100.0090.00517.03
8.0.90.0100.00516.95
8.0.80.0120.00516.98
8.0.70.0090.00517.00
8.0.60.0120.00217.04
8.0.50.0090.00616.88
8.0.30.0120.00717.08
8.0.20.0120.00617.10
8.0.10.0150.00417.21
8.0.00.0120.00617.14
7.4.330.0080.00215.95
7.4.320.0070.00416.55
7.4.300.0060.00516.54
7.4.290.0050.00716.62
7.4.280.0100.00416.52
7.4.270.0110.00216.57
7.4.260.0080.00415.77
7.4.250.0090.00416.61
7.4.240.0080.00416.65
7.4.230.0070.00516.51
7.4.220.0080.00316.67
7.4.210.0070.00816.68
7.4.200.0090.00316.67
7.4.190.0130.00316.54
7.4.180.0110.00516.75
7.4.160.0110.00616.71
7.4.150.0110.00916.62
7.4.140.0190.00316.50
7.4.130.0130.00816.57
7.4.120.0130.00516.59
7.4.110.0110.00716.60
7.4.100.0130.00516.66
7.4.90.0120.00816.58
7.4.80.0130.00717.13
7.4.70.0130.00716.58
7.4.60.0140.00516.52
7.4.50.0150.00416.52
7.4.40.0170.00616.56
7.4.30.0110.00816.56
7.4.20.0130.00716.52
7.4.10.0120.00616.58
7.4.00.0120.00716.64
7.3.330.0100.00516.30
7.3.320.0090.00415.48
7.3.310.0110.00316.40
7.3.300.0110.00316.38
7.3.290.0130.00316.26
7.3.280.0100.00816.32
7.3.270.0150.00516.35
7.3.260.0110.00716.49
7.3.250.0130.00516.41
7.3.240.0120.00616.45
7.3.230.0100.00716.41
7.3.220.0130.00416.35
7.3.210.0120.00516.40
7.3.200.0110.00616.42
7.3.190.0130.00616.39
7.3.180.0220.00416.48
7.3.170.0140.00716.32
7.3.160.0110.00716.37
7.3.150.0130.00516.33
7.3.140.0120.00716.33
7.3.130.0100.00916.37
7.3.120.0120.00516.39
7.3.110.0110.00716.34
7.3.100.0120.00616.37
7.3.90.0100.00816.53
7.3.80.0140.00316.38
7.3.70.0120.00616.39
7.3.60.0120.00716.57
7.3.50.0130.00516.47
7.3.40.0160.00216.45
7.3.30.0130.00616.35
7.3.20.0160.00517.15
7.3.10.0140.00517.13
7.3.00.0130.00417.22
7.2.340.0140.00616.67
7.2.330.0150.00616.64
7.2.320.0150.00716.56
7.2.310.0170.00616.59
7.2.300.0130.00816.67
7.2.290.0170.00416.72
7.2.280.0130.00616.67
7.2.270.0140.00516.60
7.2.260.0130.00616.77
7.2.250.0130.00516.76
7.2.240.0130.00716.65
7.2.230.0130.00616.59
7.2.220.0160.00416.63
7.2.210.0140.00616.76
7.2.200.0180.00316.79
7.2.190.0090.01216.63
7.2.180.0120.00616.55
7.2.170.0120.00716.65
7.2.160.0140.00716.68
7.2.150.0170.00417.43
7.2.140.0170.00417.38
7.2.130.0160.00417.66
7.2.120.0130.00617.47
7.2.110.0150.00517.58
7.2.100.0150.00617.57
7.2.90.0290.00417.49
7.2.80.0130.00817.37
7.2.70.0140.00617.45
7.2.60.0170.00417.44
7.2.50.0190.00617.47
7.2.40.0150.00717.57
7.2.30.0130.00617.56
7.2.20.0160.00517.52
7.2.10.0210.00617.57
7.2.00.0140.00717.59

preferences:
30.82 ms | 403 KiB | 5 Q