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(); $anagrafica->setContactableFrom(null); $anagrafica->setContactableTo(null); $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.01118.68
8.3.50.0070.00718.43
8.3.40.0210.00018.89
8.3.30.0150.00018.98
8.3.20.0040.00420.34
8.3.10.0040.01220.65
8.3.00.0000.00823.39
8.2.180.0060.01218.29
8.2.170.0110.00322.96
8.2.160.0100.00322.20
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.01120.74
8.2.120.0040.00426.35
8.2.110.0000.00920.35
8.2.100.0040.00818.05
8.2.90.0030.00519.18
8.2.80.0000.00917.97
8.2.70.0060.00317.88
8.2.60.0040.00417.88
8.2.50.0090.00318.09
8.2.40.0050.00322.23
8.2.30.0040.00419.39
8.2.20.0000.00817.91
8.2.10.0000.00718.06
8.2.00.0040.00418.00
8.1.280.0060.00925.92
8.1.270.0040.00422.06
8.1.260.0050.00328.09
8.1.250.0070.00728.09
8.1.240.0090.00023.96
8.1.230.0120.00017.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.63
8.1.190.0060.00317.47
8.1.180.0000.00818.10
8.1.170.0040.00418.72
8.1.160.0040.00420.82
8.1.150.0030.00520.61
8.1.140.0040.00419.61
8.1.130.0080.00017.79
8.1.120.0040.00417.63
8.1.110.0040.00417.61
8.1.100.0040.00417.55
8.1.90.0000.00817.56
8.1.80.0000.00717.54
8.1.70.0050.00317.51
8.1.60.0000.00817.71
8.1.50.0060.00317.50
8.1.40.0000.00817.53
8.1.30.0030.00517.74
8.1.20.0000.00717.60
8.1.10.0070.00017.59
8.1.00.0030.00817.67
8.0.300.0040.00418.77
8.0.290.0000.00716.87
8.0.280.0000.00718.60
8.0.270.0000.00717.32
8.0.260.0030.00317.34
8.0.250.0030.00317.21
8.0.240.0070.00017.00
8.0.230.0020.00517.22
8.0.220.0080.00017.06
8.0.210.0040.00417.05
8.0.200.0030.00317.19
8.0.190.0000.00717.16
8.0.180.0000.00717.08
8.0.170.0000.00817.13
8.0.160.0040.00417.15
8.0.150.0070.00017.12
8.0.140.0000.00717.05
8.0.130.0000.00813.34
8.0.120.0050.00317.02
8.0.110.0000.00817.06
8.0.100.0020.00517.16
8.0.90.0000.00717.10
8.0.80.0170.00317.01
8.0.70.0000.00817.00
8.0.60.0030.00516.92
8.0.50.0030.00516.94
8.0.30.0130.00717.06
8.0.20.0110.00717.42
8.0.10.0000.00717.21
8.0.00.0130.00816.89
7.4.330.0020.00216.77
7.4.320.0000.00716.72
7.4.300.0070.00016.55
7.4.290.0060.00316.63
7.4.280.0030.00316.59
7.4.270.0060.00016.67
7.4.260.0030.00316.52
7.4.250.0040.00416.46
7.4.240.0050.00216.79
7.4.230.0030.00316.84
7.4.220.0130.01316.77
7.4.210.0100.00516.68
7.4.200.0040.00416.56
7.4.160.0130.00316.54
7.4.150.0120.00617.40
7.4.140.0140.00717.86
7.4.130.0140.00816.79
7.4.120.0090.00816.61
7.4.110.0060.01016.69
7.4.100.0060.01316.43
7.4.90.0110.00716.73
7.4.80.0120.00419.39
7.4.70.0070.01016.72
7.4.60.0070.01016.56
7.4.50.0070.01016.51
7.4.40.0070.01016.62
7.4.30.0120.00616.76
7.4.10.0140.00315.09
7.4.00.0080.00815.17
7.3.330.0050.00013.30
7.3.320.0030.00313.20
7.3.310.0050.00216.26
7.3.300.0000.00716.28
7.3.290.0000.00716.20
7.3.280.0100.00816.40
7.3.270.0180.00617.40
7.3.260.0140.00516.59
7.3.250.0120.00816.49
7.3.240.0110.00716.78
7.3.230.0060.01316.61
7.3.210.0060.01516.53
7.3.200.0070.01016.29
7.3.190.0150.00016.64
7.3.180.0140.00916.63
7.3.170.0130.00316.57
7.3.160.0100.00616.31
7.3.130.0180.00015.11
7.3.120.0090.00615.09
7.3.110.0060.01014.81
7.3.100.0040.00714.78
7.3.90.0040.01114.98
7.3.80.0000.01215.20
7.3.70.0100.00014.81
7.3.60.0030.00914.79
7.3.50.0060.00314.93
7.3.40.0000.01014.91
7.3.30.0000.01014.69
7.3.20.0070.00316.80
7.3.10.0070.00716.51
7.3.00.0060.00616.77
7.2.330.0150.00916.69
7.2.320.0150.00917.02
7.2.310.0070.01016.65
7.2.300.0120.00617.03
7.2.290.0100.01316.89
7.2.260.0070.01015.07
7.2.250.0000.01315.20
7.2.240.0040.01115.14
7.2.230.0040.01115.04
7.2.220.0060.00915.52
7.2.210.0030.00915.54
7.2.200.0060.01215.43
7.2.190.0120.00315.27
7.2.180.0000.01015.39
7.2.170.0040.00814.95
7.2.160.0100.00615.12
7.2.150.0130.00317.08
7.2.140.0000.01617.19
7.2.130.0070.00317.16
7.2.120.0000.01417.15
7.2.110.0060.01017.03
7.2.100.0060.00617.03
7.2.90.0000.01317.27
7.2.80.0060.00917.09
7.2.70.0060.00917.15
7.2.60.0050.00517.11
7.2.50.0060.00617.23
7.2.40.0100.00717.08
7.2.30.0070.00317.17
7.2.20.0040.01217.22
7.2.10.0090.00617.19
7.2.00.0060.00818.36
7.1.330.0030.01115.90
7.1.320.0030.00915.93
7.1.310.0040.00816.02
7.1.300.0030.00615.90
7.1.290.0030.01015.87
7.1.280.0070.00716.10
7.1.270.0030.01315.70
7.1.260.0030.01016.01
7.1.250.0030.01015.94
7.1.240.0070.00715.78
7.1.230.0090.00615.98
7.1.220.0060.00615.88
7.1.210.0030.01015.85
7.1.200.0070.00515.81
7.1.190.0070.00715.89
7.1.180.0000.01216.00
7.1.170.0030.01016.07
7.1.160.0030.01015.73
7.1.150.0090.00316.00
7.1.140.0000.01315.79
7.1.130.0070.00315.88
7.1.120.0080.00815.79
7.1.110.0080.00416.04
7.1.100.0020.00816.91
7.1.90.0000.01016.05
7.1.80.0060.00615.47
7.1.70.0060.00416.60
7.1.60.0140.00417.54
7.1.50.0040.01316.40
7.1.40.0030.00615.86
7.1.30.0000.01415.73
7.1.20.0040.00416.07
7.1.10.0040.00415.59
7.1.00.0100.03519.04
7.0.330.0100.00615.42
7.0.320.0000.01215.65
7.0.310.0040.00415.37
7.0.300.0030.00615.68
7.0.290.0040.01115.48
7.0.280.0030.00715.48
7.0.270.0120.00315.59
7.0.260.0090.00615.25
7.0.250.0080.00415.72
7.0.240.0120.00015.29
7.0.230.0000.01415.78
7.0.220.0100.00315.45
7.0.210.0060.00615.56
7.0.200.0290.00515.15
7.0.190.0060.00915.55
7.0.180.0060.00315.63
7.0.170.0100.00315.54
7.0.160.0060.00315.69
7.0.150.0070.00715.61
7.0.140.0030.00615.63
7.0.130.0080.00815.51
7.0.120.0040.01115.53
7.0.110.0060.00915.36
7.0.100.0030.01315.59
7.0.90.0030.00915.71
7.0.80.0030.00915.64
7.0.70.0060.00315.59
7.0.60.0130.01818.69
7.0.50.0050.03616.70
7.0.40.0040.04316.86
7.0.30.0080.03016.74
7.0.20.0200.04216.87
7.0.10.0090.04316.90
7.0.00.0080.04316.86
5.6.400.0030.00614.60
5.6.390.0080.00414.59
5.6.380.0030.01214.36
5.6.370.0030.00714.86
5.6.360.0030.01014.55
5.6.350.0070.01114.29
5.6.340.0000.01114.60
5.6.330.0090.00614.60
5.6.320.0030.01014.69
5.6.310.0080.00614.52
5.6.300.0030.01314.70
5.6.290.0080.00414.99
5.6.280.0070.02017.70
5.6.270.0060.00914.72
5.6.260.0060.00614.64
5.6.250.0060.00914.84
5.6.240.0060.01214.66
5.6.230.0040.00814.73
5.6.220.0090.00514.38
5.6.210.0070.04717.41
5.6.200.0110.03816.33
5.6.190.0120.04017.64
5.6.180.0180.04317.64
5.6.170.0130.04017.59
5.6.160.0090.02217.58
5.6.150.0040.04016.40
5.6.140.0070.04616.51
5.6.130.0050.04516.33
5.6.120.0130.03817.84
5.6.110.0060.02617.76
5.6.100.0050.03917.86
5.6.90.0060.02317.64
5.6.80.0100.03017.48
5.6.70.0110.00414.65
5.6.60.0040.01014.82
5.6.50.0120.00014.39
5.6.40.0000.01414.50
5.6.30.0080.00614.58
5.6.20.0060.00314.61
5.6.10.0130.00314.41
5.6.00.0060.00914.07
5.5.380.0000.00814.18
5.5.370.0060.00614.29
5.5.360.0070.00714.47
5.5.350.2180.02017.47
5.5.340.0030.02616.32
5.5.330.0090.02217.44
5.5.320.0180.03417.27
5.5.310.0230.04117.35
5.5.300.0090.04416.24
5.5.290.0030.02516.21
5.5.280.0090.04117.78
5.5.270.0140.04517.73
5.5.260.0130.03817.58
5.5.250.0060.04117.60
5.5.240.0170.04017.27
5.5.230.0060.00314.27
5.5.220.0000.01114.55
5.5.210.0090.00614.63
5.5.200.0060.01014.70
5.5.190.0080.00614.22
5.5.180.0090.00614.26
5.5.170.0030.00914.22
5.5.160.0090.00314.48
5.5.150.0100.00314.25
5.5.140.0030.01014.71
5.5.130.0140.00014.38
5.5.120.0100.00614.18
5.5.110.0030.00614.26
5.5.100.0040.01114.18
5.5.90.0060.00914.23
5.5.80.0040.00814.61
5.5.70.0030.00914.00
5.5.60.0000.01414.27
5.5.50.0030.00914.48
5.5.40.0040.00714.26
5.5.30.0090.00614.58
5.5.20.0070.01014.64
5.5.10.0070.01014.52
5.5.00.0070.00314.50

preferences:
57.25 ms | 401 KiB | 5 Q