3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime("now"); $hourString = $date->format('H:i'); if (strtotime($hourString) > strtotime('17:00:00') && strtotime($hourString) < strtotime('06:00:00')) { echo($hourString); }

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.0080.00818.55
8.3.50.0070.01018.30
8.3.40.0030.01519.01
8.3.30.0140.00018.80
8.3.20.0030.00620.68
8.3.10.0040.00423.48
8.3.00.0040.00420.69
8.2.180.0080.01216.75
8.2.170.0070.00722.96
8.2.160.0040.01122.13
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0000.00921.96
8.2.100.0000.01119.31
8.2.90.0030.00618.00
8.2.80.0000.00917.97
8.2.70.0050.00318.03
8.2.60.0050.00318.22
8.2.50.0090.00018.10
8.2.40.0060.00322.20
8.2.30.0040.00419.29
8.2.20.0040.00418.11
8.2.10.0000.00718.96
8.2.00.0030.00519.22
8.1.280.0110.00425.92
8.1.270.0080.00020.85
8.1.260.0040.00426.35
8.1.250.0100.00028.09
8.1.240.0030.00620.52
8.1.230.0000.01220.89
8.1.220.0080.00019.15
8.1.210.0000.00918.77
8.1.200.0060.00317.47
8.1.190.0060.00617.35
8.1.180.0030.00618.10
8.1.170.0050.00318.73
8.1.160.0080.00020.25
8.1.150.0040.00418.90
8.1.140.0040.00418.94
8.1.130.0000.00720.23
8.1.120.0030.00517.73
8.1.110.0060.00317.53
8.1.100.0000.00817.69
8.1.90.0050.00317.67
8.1.80.0030.00517.68
8.1.70.0070.00017.54
8.1.60.0030.00517.66
8.1.50.0040.00417.63
8.1.40.0030.00717.51
8.1.30.0080.00017.81
8.1.20.0040.00417.66
8.1.10.0040.00417.51
8.1.00.0000.00717.68
8.0.300.0060.00321.50
8.0.290.0050.00316.88
8.0.280.0000.00718.43
8.0.270.0000.00817.42
8.0.260.0000.00820.05
8.0.250.0000.00717.14
8.0.240.0030.00317.08
8.0.230.0030.00317.14
8.0.220.0000.00717.07
8.0.210.0000.00717.06
8.0.200.0060.00017.03
8.0.190.0030.00517.10
8.0.180.0000.00817.13
8.0.170.0050.00317.10
8.0.160.0040.00417.05
8.0.150.0000.00817.04
8.0.140.0000.00717.00
8.0.130.0000.00513.43
8.0.120.0050.00217.10
8.0.110.0000.00716.96
8.0.100.0050.00316.95
8.0.90.0080.00016.98
8.0.80.0110.00417.09
8.0.70.0040.00417.07
8.0.60.0040.00416.98
8.0.50.0040.00416.88
8.0.30.0090.00917.24
8.0.20.0060.01317.31
8.0.10.0020.00517.09
8.0.00.0150.00816.82
7.4.330.0020.00215.55
7.4.320.0000.00616.68
7.4.300.0000.00716.61
7.4.290.0050.00216.61
7.4.280.0050.00316.47
7.4.270.0000.00716.63
7.4.260.0050.00013.25
7.4.250.0000.00716.68
7.4.240.0020.00516.70
7.4.230.0040.00416.71
7.4.220.0020.00516.64
7.4.210.0060.00916.83
7.4.200.0020.00516.61
7.4.130.0030.01816.65
7.4.120.0130.01016.56
7.4.110.0120.01216.45
7.4.100.0130.00316.62
7.4.90.0120.00616.48
7.4.80.0120.00619.39
7.4.70.0090.00616.71
7.4.60.0090.00616.63
7.4.50.0070.01016.62
7.4.40.0030.01316.69
7.4.00.0070.01015.03
7.3.330.0000.00716.40
7.3.320.0000.00513.21
7.3.310.0070.00016.28
7.3.300.0030.00316.28
7.3.290.0050.01016.35
7.3.280.0090.00616.31
7.3.260.0090.00916.50
7.3.230.0060.01216.55
7.3.210.0120.00316.34
7.3.200.0070.01016.31
7.3.190.0070.01016.60
7.3.180.0090.00916.70
7.3.170.0000.01616.58
7.3.160.0120.00416.60
7.3.110.0120.00614.82
7.3.100.0070.00714.84
7.3.90.0060.00914.74
7.3.80.0130.00314.80
7.3.70.0100.00314.80
7.3.60.0060.00914.86
7.3.50.0110.00414.83
7.3.40.0060.00614.79
7.3.30.0110.00614.92
7.3.20.0000.01414.87
7.3.10.0080.00814.67
7.3.00.0140.00014.74
7.2.330.0000.01716.89
7.2.320.0130.00316.77
7.2.310.0130.00316.84
7.2.300.0070.01016.71
7.2.290.0090.00916.76
7.2.240.0090.00614.95
7.2.230.0030.01215.33
7.2.220.0060.00914.86
7.2.210.0000.01615.33
7.2.200.0030.01315.17
7.2.190.0040.01115.05
7.2.180.0070.00715.20
7.2.170.0040.01115.14
7.2.160.0150.00015.09
7.2.150.0030.01215.27
7.2.140.0090.01215.36
7.2.130.0090.00615.23
7.2.120.0070.00715.04
7.2.110.0140.00015.02
7.2.100.0110.00415.16
7.2.90.0090.00615.18
7.2.80.0070.00715.20
7.2.70.0090.00615.19
7.2.60.0040.01515.23
7.2.50.0070.00715.13
7.2.40.0190.00315.42
7.2.30.0060.00915.23
7.2.20.0110.00315.11
7.2.10.0000.01515.09
7.2.00.0110.00315.34
7.1.330.0140.00614.05
7.1.320.0090.00613.96
7.1.310.0120.00314.02
7.1.300.0030.01014.00
7.1.290.0060.00613.92
7.1.280.0080.00613.80
7.1.270.0100.00614.23
7.1.260.0130.00013.97
7.1.250.0100.00314.22

preferences:
38.33 ms | 400 KiB | 5 Q