3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curtime = '0000'; 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'; } }

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.0160.00316.62
8.3.50.0040.01116.37
8.3.40.0110.00418.84
8.3.30.0100.01018.76
8.3.20.0080.00020.34
8.3.10.0030.00521.89
8.3.00.0080.00017.84
8.2.180.0110.01116.75
8.2.170.0140.00022.96
8.2.160.0140.00020.44
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0000.00720.38
8.2.120.0040.00426.35
8.2.110.0090.00020.44
8.2.100.0090.00317.84
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0000.00917.75
8.2.60.0080.00017.90
8.2.50.0080.00018.10
8.2.40.0000.00820.22
8.2.30.0070.00021.08
8.2.20.0040.00418.04
8.2.10.0050.00218.11
8.2.00.0040.00418.12
8.1.280.0070.01025.92
8.1.270.0040.00422.09
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0090.00022.62
8.1.230.0030.00819.00
8.1.220.0000.00917.90
8.1.210.0040.00418.77
8.1.200.0080.00017.22
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0040.00418.33
8.1.160.0000.00718.93
8.1.150.0040.00420.59
8.1.140.0040.00419.57
8.1.130.0000.00718.94
8.1.120.0040.00417.46
8.1.110.0000.00717.51
8.1.100.0000.00717.39
8.1.90.0000.00817.41
8.1.80.0040.00417.47
8.1.70.0030.00317.31
8.1.60.0030.00517.56
8.1.50.0000.00717.48
8.1.40.0000.00717.46
8.1.30.0050.00217.55
8.1.20.0080.00017.53
8.1.10.0080.00017.56
8.1.00.0030.00517.46
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0030.00318.49
8.0.270.0030.00517.25
8.0.260.0030.00316.81
8.0.250.0050.00216.80
8.0.240.0060.00016.83
8.0.230.0030.00716.85
8.0.220.0030.00516.78
8.0.210.0040.00416.80
8.0.200.0000.00716.95
8.0.190.0080.00017.02
8.0.180.0000.00716.82
8.0.170.0040.00416.88
8.0.160.0000.00816.86
8.0.150.0040.00416.82
8.0.140.0070.00016.78
8.0.130.0030.00313.28
8.0.120.0030.00616.74
8.0.110.0040.00416.78
8.0.100.0040.00416.76
8.0.90.0000.00716.78
8.0.80.0030.01316.86
8.0.70.0040.00416.88
8.0.60.0000.00716.91
8.0.50.0040.00416.79
8.0.30.0120.00316.93
8.0.20.0100.01117.40
8.0.10.0040.00416.91
8.0.00.0150.00317.00
7.4.330.0050.00015.55
7.4.320.0060.00016.52
7.4.300.0030.00316.49
7.4.290.0030.00316.62
7.4.280.0040.00416.61
7.4.270.0030.00516.45
7.4.260.0050.00013.22
7.4.250.0000.01016.45
7.4.240.0000.00716.36
7.4.230.0030.00316.48
7.4.220.0060.01316.62
7.4.210.0070.00916.49
7.4.200.0000.00716.44
7.4.160.0110.00516.47
7.4.150.0080.00817.40
7.4.140.0090.00917.86
7.4.130.0150.00316.68
7.4.120.0090.00816.52
7.3.330.0000.00512.99
7.3.320.0030.00213.16
7.3.310.0000.00716.29
7.3.300.0040.00416.16
7.3.290.0060.00016.33
7.3.280.0070.00916.32
7.3.270.0100.00717.40
7.3.260.0100.00616.58
7.3.250.0090.01016.47
7.3.240.0120.00516.46

preferences:
48.82 ms | 400 KiB | 5 Q