3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curtime = '0710'; var_dump($curtime); $trading_hour['AT_open'] = '1715'; $trading_hour['AT_close'] = '0100'; 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.01616.61
8.3.50.0070.00716.11
8.3.40.0040.01118.72
8.3.30.0090.00618.84
8.3.20.0000.00720.34
8.3.10.0000.00721.85
8.3.00.0000.00817.78
8.2.180.0100.00616.50
8.2.170.0100.01022.96
8.2.160.0030.01020.23
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00722.26
8.2.120.0000.00726.35
8.2.110.0060.00319.30
8.2.100.0040.00717.84
8.2.90.0040.00419.20
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0000.00818.19
8.2.30.0060.00318.19
8.2.20.0000.00718.05
8.2.10.0000.00818.18
8.2.00.0040.00418.15
8.1.280.0070.01025.92
8.1.270.0030.00523.92
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0040.00422.20
8.1.230.0110.00019.03
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0000.00917.48
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.00718.80
8.1.160.0040.00418.85
8.1.150.0050.00320.73
8.1.140.0000.00819.48
8.1.130.0000.00818.80
8.1.120.0040.00417.46
8.1.110.0040.00417.51
8.1.100.0000.00817.46
8.1.90.0040.00417.36
8.1.80.0070.00017.37
8.1.70.0030.00317.37
8.1.60.0000.00817.59
8.1.50.0000.00717.48
8.1.40.0000.00717.55
8.1.30.0050.00317.49
8.1.20.0060.00317.52
8.1.10.0050.00317.63
8.1.00.0040.00417.46
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0070.00018.42
8.0.270.0030.00617.17
8.0.260.0080.00016.84
8.0.250.0040.00416.91
8.0.240.0040.00416.91
8.0.230.0100.00016.84
8.0.220.0030.00316.86
8.0.210.0070.00016.95
8.0.200.0000.00716.89
8.0.190.0040.00416.92
8.0.180.0080.00016.88
8.0.170.0070.00016.86
8.0.160.0030.00316.86
8.0.150.0000.00716.87
8.0.140.0000.00716.82
8.0.130.0030.00313.37
8.0.120.0000.00716.77
8.0.110.0080.00016.82
8.0.100.0000.00716.69
8.0.90.0070.00016.87
8.0.80.0060.01216.82
8.0.70.0020.00516.92
8.0.60.0040.00416.72
8.0.50.0000.00816.80
8.0.30.0130.00717.04
8.0.20.0090.01117.40
8.0.10.0050.00216.84
8.0.00.0070.01016.84
7.4.330.0000.00515.55
7.4.320.0030.00316.41
7.4.300.0060.00016.47
7.4.290.0070.00016.41
7.4.280.0050.00216.43
7.4.270.0000.00816.42
7.4.260.0000.00513.22
7.4.250.0050.00316.51
7.4.240.0000.00716.54
7.4.230.0000.00716.43
7.4.220.0100.01316.61
7.4.210.0100.00516.57
7.4.200.0040.00416.39
7.4.160.0100.00816.39
7.4.150.0170.00317.40
7.4.140.0100.00917.86
7.4.130.0090.01516.49
7.4.120.0130.01016.58
7.3.330.0000.00513.15
7.3.320.0020.00213.11
7.3.310.0050.00216.11
7.3.300.0060.00016.14
7.3.290.0000.00716.24
7.3.280.0090.00816.25
7.3.270.0100.00717.40
7.3.260.0080.01016.59
7.3.250.0080.00916.44
7.3.240.0110.00816.47

preferences:
39.67 ms | 400 KiB | 5 Q