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('23:59:59') || strtotime($hourString) > strtotime('00:00:00') && strtotime($hourString) < strtotime('07: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.0060.00918.55
8.3.50.0120.00318.37
8.3.40.0120.00618.98
8.3.30.0070.00718.92
8.3.20.0080.00022.61
8.3.10.0040.00423.41
8.3.00.0000.00720.46
8.2.180.0130.00716.75
8.2.170.0150.00022.96
8.2.160.0140.00022.13
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0030.00721.99
8.2.100.0070.00419.46
8.2.90.0040.00418.03
8.2.80.0050.00317.97
8.2.70.0050.00318.05
8.2.60.0040.00418.16
8.2.50.0030.00518.10
8.2.40.0000.00922.20
8.2.30.0000.00719.22
8.2.20.0000.00718.04
8.2.10.0070.00019.08
8.2.00.0070.00019.33
8.1.280.0120.00325.92
8.1.270.0080.00022.42
8.1.260.0050.00226.35
8.1.250.0070.00328.09
8.1.240.0070.00420.69
8.1.230.0120.00021.00
8.1.220.0060.00319.00
8.1.210.0040.00418.77
8.1.200.0090.00017.48
8.1.190.0060.00617.22
8.1.180.0040.00418.10
8.1.170.0050.00318.69
8.1.160.0030.00320.34
8.1.150.0000.00718.98
8.1.140.0000.00718.91
8.1.130.0040.00420.13
8.1.120.0000.00917.68
8.1.110.0090.00017.63
8.1.100.0040.00417.69
8.1.90.0040.00417.68
8.1.80.0000.00817.70
8.1.70.0020.00517.69
8.1.60.0060.00317.64
8.1.50.0000.00817.69
8.1.40.0080.00417.71
8.1.30.0000.00917.83
8.1.20.0030.00617.74
8.1.10.0060.00317.66
8.1.00.0000.00717.71
8.0.300.0040.00421.59
8.0.290.0080.00016.88
8.0.280.0000.00718.43
8.0.270.0030.00617.49
8.0.260.0000.00720.12
8.0.250.0070.00317.18
8.0.240.0000.00717.23
8.0.230.0000.00717.18
8.0.220.0040.00417.02
8.0.210.0000.00717.17
8.0.200.0050.00217.20
8.0.190.0000.00717.18
8.0.180.0000.00717.13
8.0.170.0030.00617.07
8.0.160.0040.00417.02
8.0.150.0000.00717.04
8.0.140.0050.00217.09
8.0.130.0060.00013.44
8.0.120.0040.00417.11
8.0.110.0000.00717.07
8.0.100.0000.00717.13
8.0.90.0040.00417.12
8.0.80.0060.00917.04
8.0.70.0000.00717.16
8.0.60.0040.00417.14
8.0.50.0040.00417.07
8.0.30.0130.01017.34
8.0.20.0040.01617.26
8.0.10.0040.00417.21
8.0.00.0160.00316.76
7.4.330.0030.00315.55
7.4.320.0060.00016.70
7.4.300.0000.00716.67
7.4.290.0080.00016.67
7.4.280.0030.00516.70
7.4.270.0040.00416.67
7.4.260.0000.00613.32
7.4.250.0000.00716.75
7.4.240.0000.00716.70
7.4.230.0030.00316.66
7.4.220.0040.00416.71
7.4.210.0060.00916.74
7.4.200.0030.00316.73
7.4.130.0090.01216.84
7.4.120.0120.01416.75
7.4.110.0030.01416.74
7.4.100.0060.01016.60
7.4.90.0140.00316.49
7.4.80.0090.00919.39
7.4.70.0110.00516.68
7.4.60.0060.01016.80
7.4.50.0070.00716.50
7.4.40.0060.01016.73
7.4.00.0000.01715.32
7.3.330.0040.00416.25
7.3.320.0030.00313.09
7.3.310.0070.00016.36
7.3.300.0000.00716.33
7.3.290.0070.00716.51
7.3.280.0080.00716.39
7.3.260.0140.00316.60
7.3.230.0190.00316.64
7.3.210.0060.01116.45
7.3.200.0160.00016.58
7.3.190.0120.00616.45
7.3.180.0140.00316.71
7.3.170.0030.01416.48
7.3.160.0140.00416.70
7.3.110.0040.01415.11
7.3.100.0130.00315.12
7.3.90.0110.00414.86
7.3.80.0050.01114.74
7.3.70.0100.00614.99
7.3.60.0040.01115.16
7.3.50.0080.01115.02
7.3.40.0080.01214.70
7.3.30.0030.01414.66
7.3.20.0090.00615.15
7.3.10.0030.01014.98
7.3.00.0040.01014.96
7.2.330.0120.00916.77
7.2.320.0100.00616.94
7.2.310.0100.00716.88
7.2.300.0070.01116.80
7.2.290.0150.00316.93
7.2.240.0100.00715.25
7.2.230.0090.01215.34
7.2.220.0070.01014.93
7.2.210.0070.01015.08
7.2.200.0000.01415.04
7.2.190.0030.01415.07
7.2.180.0070.01115.01
7.2.170.0030.01515.25
7.2.160.0130.00615.20
7.2.150.0080.00815.06
7.2.140.0090.00615.02
7.2.130.0120.00915.08
7.2.120.0090.00615.03
7.2.110.0100.00614.86
7.2.100.0150.00015.20
7.2.90.0130.00615.43
7.2.80.0090.00615.19
7.2.70.0100.00615.02
7.2.60.0060.00915.20
7.2.50.0120.00315.21
7.2.40.0090.00615.11
7.2.30.0060.00915.40
7.2.20.0060.00915.14
7.2.10.0060.00915.19
7.2.00.0070.01015.17
7.1.330.0110.00714.21
7.1.320.0140.00013.94
7.1.310.0120.00914.25
7.1.300.0130.00614.28
7.1.290.0110.00813.98
7.1.280.0050.01114.03
7.1.270.0160.00614.11
7.1.260.0060.00714.06
7.1.250.0080.01114.24

preferences:
32.37 ms | 400 KiB | 5 Q