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.0110.00418.43
8.3.50.0090.00618.29
8.3.40.0120.00318.96
8.3.30.0120.00318.81
8.3.20.0040.00422.67
8.3.10.0080.00023.66
8.3.00.0080.00020.76
8.2.180.0100.01016.63
8.2.170.0120.00322.96
8.2.160.0140.00722.00
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0070.00026.16
8.2.110.0060.00322.03
8.2.100.0060.00619.40
8.2.90.0050.00517.97
8.2.80.0060.00317.97
8.2.70.0030.00617.93
8.2.60.0080.00017.91
8.2.50.0000.00818.10
8.2.40.0040.00422.13
8.2.30.0000.00719.46
8.2.20.0000.00818.10
8.2.10.0000.00819.01
8.2.00.0040.00419.34
8.1.280.0140.00025.92
8.1.270.0080.00022.60
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0060.00320.56
8.1.230.0060.00620.88
8.1.220.0020.00518.94
8.1.210.0040.00418.91
8.1.200.0000.00917.60
8.1.190.0060.00617.48
8.1.180.0080.00018.10
8.1.170.0040.00418.84
8.1.160.0040.00420.24
8.1.150.0040.00418.93
8.1.140.0000.00718.89
8.1.130.0030.00320.17
8.1.120.0000.00817.72
8.1.110.0000.00917.70
8.1.100.0040.00417.56
8.1.90.0030.00317.71
8.1.80.0000.00717.58
8.1.70.0070.00017.66
8.1.60.0060.00317.67
8.1.50.0030.00617.63
8.1.40.0040.00417.56
8.1.30.0040.00417.78
8.1.20.0030.00517.70
8.1.10.0040.00417.58
8.1.00.0040.00417.63
8.0.300.0050.00321.71
8.0.290.0070.00017.00
8.0.280.0050.00218.54
8.0.270.0060.00317.41
8.0.260.0000.00820.04
8.0.250.0070.00017.20
8.0.240.0000.00817.18
8.0.230.0000.00717.06
8.0.220.0030.00317.18
8.0.210.0040.00417.07
8.0.200.0030.00517.20
8.0.190.0030.00317.07
8.0.180.0040.00417.11
8.0.170.0120.00017.16
8.0.160.0000.00717.13
8.0.150.0040.00417.08
8.0.140.0070.00017.13
8.0.130.0060.00013.41
8.0.120.0000.00817.06
8.0.110.0040.00416.93
8.0.100.0040.00416.92
8.0.90.0060.00317.09
8.0.80.0030.01017.01
8.0.70.0000.00717.11
8.0.60.0030.00517.04
8.0.50.0050.00217.07
8.0.30.0000.02417.27
8.0.20.0120.01217.47
8.0.10.0000.00817.05
8.0.00.0170.00317.12
7.4.330.0050.00015.55
7.4.320.0000.00616.57
7.4.300.0070.00016.61
7.4.290.0000.00816.67
7.4.280.0000.00816.77
7.4.270.0040.00416.67
7.4.260.0060.00013.36
7.4.250.0080.00016.72
7.4.240.0020.00516.76
7.4.230.0040.00416.58
7.4.220.0030.00416.69
7.4.210.0000.02116.77
7.4.200.0000.00716.63
7.4.130.0060.01516.83
7.4.120.0030.01716.61
7.4.110.0130.00316.85
7.4.100.0130.00616.61
7.4.90.0120.00616.72
7.4.80.0100.01019.39
7.4.70.0100.00616.60
7.4.60.0060.01016.67
7.4.50.0030.01016.53
7.4.40.0070.01016.60
7.4.00.0070.01115.25
7.3.330.0030.00316.20
7.3.320.0060.00013.09
7.3.310.0000.00716.50
7.3.300.0030.00316.35
7.3.290.0100.00516.39
7.3.280.0060.00916.30
7.3.260.0090.00916.57
7.3.230.0150.00316.49
7.3.210.0100.00616.53
7.3.200.0030.01316.69
7.3.190.0100.00616.33
7.3.180.0060.01616.59
7.3.170.0140.00716.43
7.3.160.0080.00916.39
7.3.120.0070.01015.00
7.3.110.0090.00714.96
7.3.100.0110.00314.86
7.3.90.0080.00914.93
7.3.80.0050.00914.85
7.3.70.0060.01214.92
7.3.60.0080.01114.74
7.3.50.0070.00714.75
7.3.40.0020.01414.89
7.3.30.0030.01014.88
7.3.20.0080.00515.80
7.3.10.0050.01015.63
7.3.00.0090.00915.71
7.2.330.0070.01016.51
7.2.320.0060.01216.60
7.2.310.0070.01016.59
7.2.300.0090.00916.79
7.2.290.0060.01616.54
7.2.250.0000.01515.05
7.2.240.0100.00714.97
7.2.230.0080.00915.25
7.2.220.0050.00815.17
7.2.210.0070.00915.17
7.2.200.0080.00614.93
7.2.190.0100.00815.18
7.2.180.0050.01115.01
7.2.170.0090.00314.88
7.2.160.0100.00515.05
7.2.150.0080.00515.96
7.2.140.0080.00815.97
7.2.130.0100.01016.16
7.2.120.0090.01016.25
7.2.110.0100.00316.07
7.2.100.0050.01116.13
7.2.90.0060.00916.05
7.2.80.0100.00516.16
7.2.70.0030.01216.17
7.2.60.0040.01215.93
7.2.50.0050.00915.96
7.2.40.0060.01116.05
7.2.30.0090.00616.15
7.2.20.0040.01016.07
7.2.10.0060.00916.02
7.2.00.0100.00516.21
7.1.330.0060.00815.02
7.1.320.0060.00815.14
7.1.310.0060.00614.91
7.1.300.0050.01314.89
7.1.290.0050.00915.05
7.1.280.0020.01214.91
7.1.270.0050.01015.04
7.1.260.0080.01015.05
7.1.250.0070.00914.97

preferences:
30.17 ms | 400 KiB | 5 Q