3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curtime = '1810'; var_dump($curtime); $trading_hour['AT_open'] = '1715'; $trading_hour['AT_close'] = '2345'; if ($curtime <= '0100' || ($curtime >= '0830' && $curtime <= '2359')) { if ($curtime >= $trading_hour['AT_open'] || $curtime <= $trading_hour['AT_close']) { echo 'AT'; } else { echo 'N'; } } else { echo 'stop'; }

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.0070.01716.63
8.3.50.0070.00716.48
8.3.40.0060.01218.70
8.3.30.0090.00618.71
8.3.20.0050.00320.21
8.3.10.0070.00021.94
8.3.00.0080.00017.78
8.2.180.0100.00716.34
8.2.170.0070.00722.96
8.2.160.0090.00420.44
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00422.26
8.2.120.0040.00426.35
8.2.110.0060.00320.39
8.2.100.0060.00617.84
8.2.90.0060.00319.36
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00818.05
8.2.50.0060.00318.10
8.2.40.0030.00522.32
8.2.30.0000.00821.16
8.2.20.0030.00518.18
8.2.10.0040.00418.13
8.2.00.0040.00418.12
8.1.280.0160.00625.92
8.1.270.0040.00422.09
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0080.00020.79
8.1.230.0080.00319.16
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.01017.25
8.1.190.0000.01017.36
8.1.180.0000.00718.10
8.1.170.0050.00318.64
8.1.160.0000.00719.03
8.1.150.0040.00420.72
8.1.140.0040.00419.45
8.1.130.0000.00718.89
8.1.120.0000.00717.46
8.1.110.0000.00817.45
8.1.100.0030.00617.41
8.1.90.0000.00817.36
8.1.80.0070.00017.36
8.1.70.0000.00717.36
8.1.60.0040.00417.54
8.1.50.0050.00317.50
8.1.40.0000.00717.52
8.1.30.0000.00717.68
8.1.20.0000.00717.65
8.1.10.0030.00617.59
8.1.00.0040.00417.46
8.0.300.0000.00818.77
8.0.290.0000.00816.63
8.0.280.0030.00518.50
8.0.270.0030.00617.26
8.0.260.0030.00316.77
8.0.250.0070.00016.86
8.0.240.0070.00016.98
8.0.230.0030.00716.97
8.0.220.0050.00216.93
8.0.210.0000.00716.87
8.0.200.0030.00316.84
8.0.190.0050.00516.95
8.0.180.0000.00716.80
8.0.170.0000.00716.92
8.0.160.0000.00716.99
8.0.150.0000.00716.81
8.0.140.0000.00816.86
8.0.130.0030.00313.32
8.0.120.0000.00816.85
8.0.110.0030.00516.89
8.0.100.0080.00016.78
8.0.90.0030.00316.71
8.0.80.0100.00716.78
8.0.70.0030.00516.80
8.0.60.0000.00716.71
8.0.50.0080.00016.89
8.0.30.0130.00517.25
8.0.20.0070.01217.40
8.0.10.0040.00417.05
8.0.00.0170.00716.71
7.4.330.0000.00615.55
7.4.320.0030.00316.63
7.4.300.0000.00716.49
7.4.290.0030.00316.36
7.4.280.0040.00416.59
7.4.270.0040.00416.41
7.4.260.0030.00313.28
7.4.250.0030.00516.57
7.4.240.0000.00716.53
7.4.230.0000.00716.71
7.4.220.0090.00916.54
7.4.210.0060.01116.62
7.4.200.0040.00416.67
7.4.160.0060.00916.58
7.4.150.0040.01417.40
7.4.140.0080.01117.86
7.4.130.0120.00616.41
7.4.120.0130.00916.41
7.3.330.0000.00513.15
7.3.320.0000.00513.15
7.3.310.0040.00416.46
7.3.300.0030.00316.22
7.3.290.0030.00316.23
7.3.280.0090.00616.30
7.3.270.0080.01217.40
7.3.260.0120.00616.39
7.3.250.0110.01116.42
7.3.240.0080.01016.49

preferences:
45.85 ms | 401 KiB | 5 Q