3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTime = "5:00AM"; $endTime = "8:00AM"; $startTime = new DateTime($startTime); $endTime = new DateTime($endTime); $now = new DateTime(); if ($now >= $startTime && $now < $endTime) { echo "Time now ({$now->format('h:i a')}) is between start ({$startTime->format('h:i a')}) and end ({$endTime->format('h:i a')}) times"; } else { echo "Time now ({$now->format('h:i a')}) is NOT between start ({$startTime->format('h:i a')}) and end ({$endTime->format('h:i a')}) times"; }

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.0110.01017.62
8.4.130.0070.00217.72
8.4.120.0140.00520.50
8.4.110.0110.00922.60
8.4.100.0100.01117.77
8.4.90.0130.01022.55
8.4.80.0150.00519.84
8.4.70.0120.00818.23
8.4.60.0120.00818.93
8.4.50.0100.01020.61
8.4.40.0080.00017.96
8.4.30.0060.00317.72
8.4.20.0070.01319.83
8.4.10.0030.00617.80
8.3.270.0120.00716.87
8.3.260.0030.00616.76
8.3.250.0130.00618.86
8.3.240.0140.00616.80
8.3.230.0100.00616.61
8.3.220.0040.00417.16
8.3.210.0060.00216.69
8.3.200.0070.00316.90
8.3.190.0100.00917.11
8.3.180.0100.00618.34
8.3.170.0130.00617.09
8.3.160.0150.00718.84
8.3.150.0070.01118.77
8.3.140.0110.00417.37
8.3.130.0030.00618.52
8.3.120.0060.00318.75
8.3.110.0060.00620.94
8.3.100.0050.00516.66
8.3.90.0120.00626.77
8.3.80.0050.00517.97
8.3.70.0180.00018.45
8.3.60.0070.01018.30
8.3.50.0050.01218.28
8.3.40.0000.01418.96
8.3.30.0090.00618.77
8.3.20.0040.00421.69
8.3.10.0080.00023.48
8.3.00.0080.00021.72
8.2.290.0130.00620.32
8.2.280.0090.01018.41
8.2.270.0140.00417.18
8.2.260.0120.00616.73
8.2.250.0000.00818.75
8.2.240.0030.00618.86
8.2.230.0070.00322.58
8.2.220.0070.00324.06
8.2.210.0070.00426.77
8.2.200.0000.00916.63
8.2.190.0090.00616.75
8.2.180.0150.00616.50
8.2.170.0070.01322.96
8.2.160.0100.00320.32
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00422.21
8.2.120.0080.00026.35
8.2.110.0090.00020.99
8.2.100.0040.00817.82
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0080.00018.03
8.2.50.0000.00818.34
8.2.40.0040.00420.58
8.2.30.0030.00619.27
8.2.20.0040.00418.13
8.2.10.0060.00318.09
8.2.00.0070.00018.06
8.1.330.0140.00421.79
8.1.320.0100.01016.21
8.1.310.0100.00718.36
8.1.300.0040.00419.90
8.1.290.0030.00630.84
8.1.280.0070.01425.92
8.1.270.0050.00322.02
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00019.21
8.1.230.0030.00717.83
8.1.220.0000.00817.89
8.1.210.0040.00718.77
8.1.200.0080.00017.48
8.1.190.0000.01617.25
8.1.180.0000.00818.10
8.1.170.0050.00318.71
8.1.160.0040.00418.96
8.1.150.0000.00718.96
8.1.140.0070.00019.12
8.1.130.0000.00820.61
8.1.120.0000.00717.56
8.1.110.0040.00417.53
8.1.100.0050.00317.51
8.1.90.0050.00217.57
8.1.80.0030.00717.66
8.1.70.0000.00717.61
8.1.60.0000.00917.63
8.1.50.0000.00717.65
8.1.40.0030.00617.54
8.1.30.0030.00517.70
8.1.20.0050.00317.79
8.1.10.0040.00417.71
8.1.00.0040.00417.68
8.0.300.0040.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.52
8.0.270.0030.00317.34
8.0.260.0000.00917.02
8.0.250.0030.00317.18
8.0.240.0000.00717.23
8.0.230.0000.00716.98
8.0.220.0030.00617.05
8.0.210.0040.00417.08
8.0.200.0000.00617.16
8.0.190.0080.00017.14
8.0.180.0050.00217.13
8.0.170.0070.00417.17
8.0.160.0060.00317.09
8.0.150.0000.00716.95
8.0.140.0040.00417.03
8.0.130.0050.00013.49
8.0.120.0030.00617.06
8.0.110.0000.00716.96
8.0.100.0000.00816.89
8.0.90.0070.00016.92
8.0.80.0100.01116.98
8.0.70.0000.00817.13
8.0.60.0000.00817.21
8.0.50.0040.00417.21
8.0.30.0090.01017.27
8.0.20.0110.00817.42
8.0.10.0050.00317.19
8.0.00.0090.00816.85
7.4.330.0020.00216.79
7.4.320.0070.00016.57
7.4.300.0000.00716.78
7.4.290.0030.00516.64
7.4.280.0060.00316.74
7.4.270.0000.00716.65
7.4.260.0030.00716.72
7.4.250.0040.00416.59
7.4.240.0030.00416.64
7.4.230.0000.00716.55
7.4.220.0000.00716.84
7.4.210.0090.01116.71
7.4.200.0000.00716.59
7.4.160.0110.00516.75
7.4.150.0100.02017.40
7.4.140.0100.01017.86
7.4.130.0190.00316.61
7.4.120.0100.00816.73
7.4.110.0120.00616.54
7.4.100.0130.00616.66
7.4.90.0100.00716.69
7.4.80.0100.01019.39
7.4.70.0060.01216.60
7.4.60.0060.01216.71
7.4.50.0070.00716.45
7.4.40.0090.00916.86
7.4.30.0060.00916.82
7.4.00.0070.01015.21
7.3.330.0030.00313.09
7.3.320.0000.00613.11
7.3.310.0000.00816.21
7.3.300.0030.00516.24
7.3.290.0000.00816.38
7.3.280.0090.00616.29
7.3.270.0140.00817.40
7.3.260.0100.01116.45
7.3.250.0100.00816.54
7.3.240.0040.01316.51
7.3.230.0110.00516.58
7.3.210.0080.01116.37
7.3.200.0130.00816.30
7.3.190.0070.01016.38
7.3.180.0080.00816.55
7.3.170.0070.01016.61
7.3.160.0040.01216.60
7.2.330.0140.00416.50
7.2.320.0100.00716.62
7.2.310.0210.00316.63
7.2.300.0100.01316.87
7.2.290.0090.00916.55
7.2.60.0040.00717.12
7.2.00.0080.01620.04
7.1.200.0040.00815.71
7.1.120.0120.00318.91
7.1.110.0050.00818.30
7.1.100.0150.00918.44
7.1.90.0070.00718.17
7.1.80.0050.01117.99
7.1.70.0210.00417.25
7.1.60.0230.01335.34
7.1.50.0230.00934.77
7.1.40.0240.01434.38
7.1.30.0210.01134.41
7.1.20.0190.01834.67
7.1.10.0090.00616.56
7.1.00.0070.00716.68

preferences:
34.51 ms | 403 KiB | 5 Q