3v4l.org

run code in 300+ PHP versions simultaneously
<?php $otime="16:15"; $ctime="00:50"; $open = strtotime(date("Y-m-d ").$otime); $close = strtotime(date("Y-m-d ").$ctime); If($close<$open) $close += 3600*24; If(time() >= $open && time() < $close){ Echo "open"; }Else{ Echo "closed"; }

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.1.40.0280.00317.64
8.1.30.0110.00417.75
8.1.20.0160.00317.59
8.1.10.0150.00017.48
8.1.00.0120.00017.43
8.0.170.0120.00017.04
8.0.160.0040.00717.04
8.0.150.0090.00316.77
8.0.140.0100.00316.93
8.0.130.0100.00517.04
8.0.120.0080.00816.89
8.0.110.0140.00316.81
8.0.100.0070.00716.86
8.0.90.0050.00417.03
8.0.80.0170.00017.06
8.0.70.0000.01116.87
8.0.60.0050.00517.02
8.0.50.0090.00316.92
8.0.30.0100.00617.01
8.0.20.0110.00817.14
8.0.10.0200.00617.13
8.0.00.0090.00617.18
7.4.330.0040.00216.30
7.4.280.0060.00616.48
7.4.270.0090.00716.68
7.4.260.0030.00716.44
7.4.250.0070.00516.64
7.4.240.0080.00816.59
7.4.230.0110.00616.55
7.4.220.0000.01516.55
7.4.210.0130.00616.64
7.4.200.0180.00316.66
7.4.190.0170.00316.66
7.4.180.0060.01216.73
7.4.160.0130.00616.64
7.4.150.0090.00716.56
7.4.140.0140.00416.54
7.4.130.0140.00616.57
7.4.120.0110.00716.46
7.4.110.0120.00816.64
7.4.100.0110.00816.68
7.4.90.0130.00416.56
7.4.80.0100.01016.58
7.4.70.0150.00816.59
7.4.60.0130.00616.46
7.4.50.0100.00816.52
7.4.40.0130.00616.50
7.4.30.0140.00516.65
7.4.20.0100.01016.63
7.4.10.0110.00816.45
7.4.00.0090.00716.64
7.3.330.0190.00016.20
7.3.320.0190.00016.28
7.3.310.0140.00516.32
7.3.300.0220.00016.22
7.3.290.0150.01116.17
7.3.280.0180.00516.39
7.3.270.0170.00316.22
7.3.260.0120.00716.34
7.3.250.0100.00916.28
7.3.240.0100.00916.29
7.3.230.0150.00716.31
7.3.220.0140.00516.32
7.3.210.0100.00716.27
7.3.200.0170.00616.26
7.3.190.0120.01016.26
7.3.180.0130.00616.27
7.3.170.0160.00516.32
7.3.160.0090.00916.34
7.3.150.0070.01116.24
7.3.140.0070.01116.16
7.3.130.0150.00416.25
7.3.120.0170.00316.33
7.3.110.0120.00916.28
7.3.100.0120.00616.27
7.3.90.0090.00916.58
7.3.80.0170.00416.13
7.3.70.0140.00716.39
7.3.60.0160.00416.45
7.3.50.0140.00516.48
7.3.40.0110.00816.41
7.3.30.0100.00716.51
7.3.20.0140.00817.39
7.3.10.0070.01417.27
7.3.00.0230.00517.19
7.2.340.0200.00516.61
7.2.330.0180.00716.57
7.2.320.0180.00716.60
7.2.310.0180.00916.57
7.2.300.0180.00916.53
7.2.290.0200.00616.52
7.2.280.0190.00716.53
7.2.270.0210.01016.58
7.2.260.0200.00616.50
7.2.250.0230.00316.57
7.2.240.0170.01016.50
7.2.230.0190.00616.51
7.2.220.0210.00416.60
7.2.210.0160.00916.50
7.2.200.0220.01116.56
7.2.190.0140.00916.63
7.2.180.0230.00416.56
7.2.170.0190.00616.64
7.2.160.0220.00416.73
7.2.150.0170.00717.53
7.2.140.0180.00517.54
7.2.130.0170.00917.72
7.2.120.0180.00817.60
7.2.110.0190.00617.75
7.2.100.0200.00517.67
7.2.90.0210.00517.62
7.2.80.0220.00617.70
7.2.70.0230.00617.53
7.2.60.0110.01017.43
7.2.50.0180.00917.53
7.2.40.0180.00817.65
7.2.30.0190.00917.57
7.2.20.0190.00717.69
7.2.10.0210.00817.63
7.2.00.0160.01117.90
7.1.330.0240.00816.48
7.1.320.0240.00516.48
7.1.310.0200.00516.49
7.1.300.0150.00916.61
7.1.290.0160.00816.60
7.1.280.0100.01216.51
7.1.270.0150.00616.58
7.1.260.0180.00616.50
7.1.250.0150.00816.36
7.1.240.0150.00916.44
7.1.230.0120.01216.59
7.1.220.0190.00516.40
7.1.210.0140.01016.45
7.1.200.0140.00816.31
7.1.190.0230.00916.58
7.1.180.0150.01016.43
7.1.170.0170.00716.44
7.1.160.0160.00816.51
7.1.150.0150.00816.54
7.1.140.0150.01016.53
7.1.130.0240.00016.47
7.1.120.0180.00616.64
7.1.110.0150.00916.53
7.1.100.0160.00916.31
7.1.90.0320.00816.49
7.1.80.0170.00916.50
7.1.70.0210.00616.10
7.1.60.0280.00922.22
7.1.50.0250.00722.15
7.1.40.0230.01222.02
7.1.30.0310.00622.02
7.1.20.0280.00621.92
7.1.10.0220.00615.96
7.1.00.0200.00815.88
7.0.330.0140.00816.27
7.0.320.0170.00416.21
7.0.310.0110.01316.11
7.0.300.0180.00716.18
7.0.290.0180.00716.13
7.0.280.0110.00816.22
7.0.270.0220.00416.20
7.0.260.0160.00816.14
7.0.250.0150.00816.48
7.0.240.0150.00916.39
7.0.230.0170.00516.40
7.0.220.0200.00316.28
7.0.210.0190.00616.38
7.0.200.0190.00816.31
7.0.190.0210.00316.37
7.0.180.0160.00716.33
7.0.170.0190.00516.50
7.0.160.0170.00716.31
7.0.150.0220.00216.20
7.0.140.0180.00516.23
7.0.130.0110.00816.29
7.0.120.0190.00916.27
7.0.110.0210.00516.33
7.0.100.0130.00616.22
7.0.90.0120.00916.18
7.0.80.0150.00816.25
7.0.70.0180.00616.21
7.0.60.0140.00816.31
7.0.50.0190.00616.16
7.0.40.0170.00716.30
7.0.30.0180.00516.32
7.0.20.0150.00916.20
7.0.10.0210.00216.24
7.0.00.0160.00516.24
5.6.400.0140.01016.00
5.6.390.0160.00816.03
5.6.380.0110.01215.97
5.6.370.0200.00216.01
5.6.360.0170.00716.07
5.6.350.0190.00516.07
5.6.340.0140.00915.98
5.6.330.0150.01115.94
5.6.320.0160.00815.95
5.6.310.0170.00716.06
5.6.300.0120.01115.79
5.6.290.0130.01016.02
5.6.280.0110.01015.98
5.6.270.0190.00515.99
5.6.260.0170.00516.06
5.6.250.0140.01116.00
5.6.240.0140.01216.00
5.6.230.0150.00916.16
5.6.220.0210.00516.09
5.6.210.0200.00415.95
5.6.200.0110.01216.18
5.6.190.0140.00816.09
5.6.180.0150.00716.11
5.6.170.0200.00516.19
5.6.160.0110.01116.07
5.6.150.0170.00916.21
5.6.140.0200.00416.18
5.6.130.0210.00316.22
5.6.120.0190.00416.27
5.6.110.0150.00715.96
5.6.100.0190.00516.05
5.6.90.0170.00515.93
5.6.80.0120.01016.00
5.6.70.0170.00416.13
5.6.60.0090.01416.13
5.6.50.0150.00815.92
5.6.40.0130.00816.04
5.6.30.0210.00416.07
5.6.20.0170.01316.03
5.6.10.0160.00616.00
5.6.00.0100.01216.02

preferences:
51.56 ms | 403 KiB | 5 Q