3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Anagrafica { private $contactableFrom; private $contactableTo; public function getContactableFrom () { return $this->contactableFrom; } public function setContactableFrom ($cF) { $this->contactableFrom = $cF; } public function getContactableTo () { return $this->contactableTo; } public function setContactableTo ($cT) { $this->contactableTo = $cT; } } $anagrafica = new Anagrafica(); $contactableFrom = ($anagrafica->getContactableFrom()) ? $anagrafica->getContactableFrom()->format('His') : '080000'; $contactableTo = ($anagrafica->getContactableTo()) ? $anagrafica->getContactableTo()->format('His') : '220000'; $currentTime = (new \DateTime())->format('His'); if ($currentTime < $contactableFrom || $currentTime > $contactableTo) { echo 'false'; } else { echo 'true'; }

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.0110.00718.42
8.3.50.0160.00322.05
8.3.40.0150.00018.88
8.3.30.0040.01418.89
8.3.20.0080.00820.34
8.3.10.0100.00720.73
8.3.00.0000.00823.71
8.2.180.0060.00916.88
8.2.170.0090.00622.96
8.2.160.0110.00422.16
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0090.00020.86
8.2.120.0040.00426.35
8.2.110.0030.00619.31
8.2.100.0040.00718.03
8.2.90.0050.00319.20
8.2.80.0090.00017.97
8.2.70.0000.00817.75
8.2.60.0050.00318.05
8.2.50.0030.00518.09
8.2.40.0040.00422.23
8.2.30.0040.00419.58
8.2.20.0040.00417.91
8.2.10.0040.00418.17
8.2.00.0000.00718.14
8.1.280.0090.00625.92
8.1.270.0110.00422.20
8.1.260.0130.00328.09
8.1.250.0110.00728.09
8.1.240.0080.00423.81
8.1.230.0070.00420.94
8.1.220.0040.00417.74
8.1.210.0070.00418.82
8.1.200.0060.00317.35
8.1.190.0090.00017.47
8.1.180.0050.00318.10
8.1.170.0040.00418.71
8.1.160.0000.00720.78
8.1.150.0000.00820.78
8.1.140.0030.00519.65
8.1.130.0070.00317.80
8.1.120.0000.00817.64
8.1.110.0000.00717.67
8.1.100.0040.00417.73
8.1.90.0050.00317.59
8.1.80.0050.00317.75
8.1.70.0050.00317.62
8.1.60.0040.00417.77
8.1.50.0040.00417.69
8.1.40.0030.00617.58
8.1.30.0040.00417.70
8.1.20.0000.00817.62
8.1.10.0030.00617.82
8.1.00.0090.00017.75
8.0.300.0000.00719.98
8.0.290.0000.00817.00
8.0.280.0030.00518.43
8.0.270.0000.00817.30
8.0.260.0000.00717.41
8.0.250.0030.00317.19
8.0.240.0000.00717.23
8.0.230.0070.00017.19
8.0.220.0040.00417.17
8.0.210.0030.00317.13
8.0.200.0060.00017.20
8.0.190.0040.00417.19
8.0.180.0040.00417.02
8.0.170.0080.00017.10
8.0.160.0030.00517.18
8.0.150.0000.00717.17
8.0.140.0040.00417.06
8.0.130.0000.00513.54
8.0.120.0040.00417.00
8.0.110.0040.00417.11
8.0.100.0060.00317.18
8.0.90.0050.00317.14
8.0.80.0130.00316.99
8.0.70.0040.00416.99
8.0.60.0040.00417.03
8.0.50.0040.00416.97
8.0.30.0150.00517.38
8.0.20.0130.00817.41
8.0.10.0040.00417.14
8.0.00.0060.01317.04
7.4.330.0020.00216.76
7.4.320.0030.00316.77
7.4.300.0060.00016.66
7.4.290.0090.00016.68
7.4.280.0000.00716.68
7.4.270.0030.00316.68
7.4.260.0000.00816.70
7.4.250.0030.00616.77
7.4.240.0050.00216.81
7.4.230.0070.00016.84
7.4.220.0130.00816.78
7.4.210.0080.00616.64
7.4.200.0000.00716.84
7.4.160.0040.01516.73
7.4.150.0100.00917.40
7.4.140.0140.00417.86
7.4.130.0110.01116.66
7.4.120.0120.00516.78
7.4.110.0070.01016.71
7.4.100.0150.00416.58
7.4.90.0100.00716.90
7.4.80.0110.00719.39
7.4.70.0060.01016.74
7.4.60.0090.00616.68
7.4.50.0060.00916.50
7.4.40.0120.00616.76
7.4.30.0060.01216.74
7.4.00.0120.00615.17
7.3.330.0030.00313.10
7.3.320.0000.00613.31
7.3.310.0030.00316.32
7.3.300.0000.00716.39
7.3.290.0030.00316.23
7.3.280.0110.00616.34
7.3.270.0130.00317.40
7.3.260.0070.01516.54
7.3.250.0110.00916.48
7.3.240.0110.00616.57
7.3.230.0060.01616.58
7.3.210.0100.00716.42
7.3.200.0070.01316.68
7.3.190.0120.00616.45
7.3.180.0090.01516.62
7.3.170.0030.01316.61
7.3.160.0030.01316.68
7.2.330.0030.01516.52
7.2.320.0130.01016.94
7.2.310.0090.00616.66
7.2.300.0070.01016.77
7.2.290.0140.00316.81
7.2.60.0040.01017.21
7.2.00.0060.00619.68
7.1.200.0070.00715.75
7.1.100.0040.00718.30
7.1.70.0040.00417.08
7.1.60.0170.00719.19
7.1.50.0070.01417.04
7.1.00.0030.07722.45
7.0.200.0350.01315.09
7.0.60.0100.05721.84
7.0.50.0070.05718.00
7.0.40.0000.04720.19
7.0.30.0470.04320.09
7.0.20.0300.08320.06
7.0.10.0130.08020.06
7.0.00.0100.09020.14
5.6.280.0070.07020.93
5.6.210.0070.03720.62
5.6.200.0000.08318.16
5.6.190.0070.06020.52
5.6.180.0230.04320.41
5.6.170.0230.04320.45
5.6.160.0070.04720.70
5.6.150.0130.05318.28
5.6.140.0130.08018.18
5.6.130.0100.08718.15
5.6.120.0070.09020.91
5.6.110.0000.04721.01
5.6.100.0100.06021.13
5.6.90.0070.08320.96
5.6.80.0070.04720.51
5.5.350.0070.04020.44
5.5.340.0030.04017.96
5.5.330.0100.03720.33
5.5.320.0570.06720.42
5.5.310.0170.04720.27
5.5.300.0100.03317.97
5.5.290.0130.05317.95
5.5.280.0030.08720.77
5.5.270.0100.08320.89
5.5.260.0070.06720.79
5.5.250.0000.04320.71
5.5.240.0170.03320.36

preferences:
44.36 ms | 401 KiB | 5 Q