3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime("now"); $hourString = $date->format('H:i'); if (strtotime($hourString) > strtotime('12: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.0120.00318.36
8.3.50.0070.01017.92
8.3.40.0120.00619.02
8.3.30.0150.00018.67
8.3.20.0040.00420.74
8.3.10.0080.00023.61
8.3.00.0070.00020.70
8.2.180.0150.00316.34
8.2.170.0120.00322.96
8.2.160.0070.00721.91
8.2.150.0020.00524.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0060.00322.02
8.2.100.0120.00019.40
8.2.90.0040.00418.03
8.2.80.0000.00818.05
8.2.70.0000.00817.93
8.2.60.0040.00418.02
8.2.50.0080.00018.10
8.2.40.0040.00422.26
8.2.30.0000.00719.36
8.2.20.0000.00718.02
8.2.10.0080.00019.09
8.2.00.0030.00319.17
8.1.280.0130.00725.92
8.1.270.0090.00022.37
8.1.260.0040.00426.35
8.1.250.0030.00728.09
8.1.240.0060.00320.57
8.1.230.0040.00820.90
8.1.220.0000.00718.90
8.1.210.0030.00718.77
8.1.200.0030.00617.48
8.1.190.0090.00417.47
8.1.180.0000.00718.10
8.1.170.0050.00318.60
8.1.160.0000.00720.19
8.1.150.0040.00418.94
8.1.140.0040.00418.95
8.1.130.0000.00720.18
8.1.120.0030.00317.71
8.1.110.0000.00817.60
8.1.100.0000.00717.64
8.1.90.0000.00717.59
8.1.80.0050.00217.67
8.1.70.0030.00317.66
8.1.60.0050.00317.69
8.1.50.0050.00217.52
8.1.40.0030.00717.66
8.1.30.0000.00817.83
8.1.20.0030.00517.71
8.1.10.0080.00017.63
8.1.00.0060.00317.68
8.0.300.0030.00521.63
8.0.290.0070.00016.88
8.0.280.0070.00018.43
8.0.270.0040.00417.36
8.0.260.0000.00819.95
8.0.250.0030.00317.04
8.0.240.0000.00717.14
8.0.230.0000.00817.03
8.0.220.0000.00716.98
8.0.210.0030.00316.99
8.0.200.0000.00617.14
8.0.190.0000.00717.15
8.0.180.0070.00017.09
8.0.170.0000.00917.10
8.0.160.0000.00717.08
8.0.150.0000.00716.84
8.0.140.0000.00817.05
8.0.130.0030.00313.39
8.0.120.0080.00017.05
8.0.110.0040.00417.05
8.0.100.0040.00417.13
8.0.90.0080.00017.08
8.0.80.0090.00617.09
8.0.70.0070.00016.88
8.0.60.0040.00417.08
8.0.50.0000.00716.95
8.0.30.0120.00617.24
8.0.20.0090.00916.96
8.0.10.0030.00517.09
8.0.00.0130.01317.02
7.4.330.0050.00015.55
7.4.320.0030.00316.73
7.4.300.0030.00316.71
7.4.290.0040.00416.71
7.4.280.0050.00316.63
7.4.270.0000.00716.73
7.4.260.0000.00613.35
7.4.250.0050.00216.51
7.4.240.0050.00216.73
7.4.230.0000.00616.52
7.4.220.0050.00216.71
7.4.210.0100.00616.83
7.4.200.0030.00316.69
7.4.130.0160.00616.73
7.4.120.0160.00616.71
7.4.110.0140.00316.84
7.4.100.0140.00316.64
7.4.90.0140.00316.61
7.4.80.0110.00719.39
7.4.70.0060.00916.66
7.4.60.0030.01316.76
7.4.50.0090.00616.70
7.4.40.0120.00416.28
7.4.00.0140.00015.24
7.3.330.0030.00316.17
7.3.320.0030.00313.24
7.3.310.0040.00416.33
7.3.300.0070.00016.37
7.3.290.0060.00816.29
7.3.280.0040.01116.29
7.3.260.0070.01016.52
7.3.230.0070.01016.43
7.3.210.0130.00316.61
7.3.200.0100.00616.70
7.3.190.0110.01116.40
7.3.180.0070.01016.53
7.3.170.0160.00016.36
7.3.160.0050.01116.42
7.3.110.0000.01314.87
7.3.100.0060.00915.02
7.3.90.0030.01314.90
7.3.80.0040.01114.97
7.3.70.0110.00314.60
7.3.60.0030.01014.93
7.3.50.0150.00814.88
7.3.40.0030.01214.70
7.3.30.0090.00614.93
7.3.20.0070.01014.93
7.3.10.0110.00315.01
7.3.00.0030.01414.92
7.2.330.0140.00416.71
7.2.320.0100.00716.59
7.2.310.0100.00716.86
7.2.300.0090.00916.80
7.2.290.0120.00616.63
7.2.240.0110.00315.03
7.2.230.0030.01214.95
7.2.220.0080.00815.07
7.2.210.0140.00014.86
7.2.200.0110.00315.06
7.2.190.0040.01115.13
7.2.180.0100.01015.10
7.2.170.0130.00315.19
7.2.160.0110.00715.02
7.2.150.0050.00815.29
7.2.140.0070.00915.34
7.2.130.0090.00614.87
7.2.120.0110.00414.91
7.2.110.0060.00915.09
7.2.100.0070.00715.24
7.2.90.0120.00915.40
7.2.80.0100.01015.04
7.2.70.0030.01215.22
7.2.60.0120.00315.06
7.2.50.0120.00314.96
7.2.40.0120.00314.91
7.2.30.0090.00615.22
7.2.20.0030.01614.96
7.2.10.0040.01114.95
7.2.00.0070.00715.29
7.1.330.0030.01314.15
7.1.320.0080.00713.82
7.1.310.0120.00313.97
7.1.300.0100.00314.00
7.1.290.0040.01013.93
7.1.280.0100.00414.09
7.1.270.0130.00313.97
7.1.260.0030.01014.10
7.1.250.0060.00714.21

preferences:
62.83 ms | 400 KiB | 5 Q