3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime("now"); $hourString = $date->format('H:i'); if (strtotime($hourString) > strtotime('11: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.0110.00418.30
8.3.50.0130.00318.20
8.3.40.0090.00618.59
8.3.30.0110.00418.81
8.3.20.0040.00420.82
8.3.10.0080.00023.69
8.3.00.0050.00320.55
8.2.180.0170.00318.66
8.2.170.0070.00722.96
8.2.160.0070.00722.21
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00226.16
8.2.110.0100.00022.25
8.2.100.0060.00619.15
8.2.90.0060.00317.78
8.2.80.0040.00417.97
8.2.70.0030.00518.03
8.2.60.0040.00418.34
8.2.50.0090.00018.10
8.2.40.0040.00422.20
8.2.30.0050.00219.29
8.2.20.0000.00818.18
8.2.10.0030.00518.93
8.2.00.0070.00019.18
8.1.280.0070.01025.92
8.1.270.0000.00822.46
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0040.00420.60
8.1.230.0040.00721.00
8.1.220.0040.00418.84
8.1.210.0070.00318.79
8.1.200.0000.00917.48
8.1.190.0110.00017.13
8.1.180.0000.00818.10
8.1.170.0040.00418.69
8.1.160.0040.00420.16
8.1.150.0040.00418.98
8.1.140.0030.00318.98
8.1.130.0040.00420.13
8.1.120.0070.00017.52
8.1.110.0060.00317.63
8.1.100.0060.00317.53
8.1.90.0000.00717.54
8.1.80.0040.00417.54
8.1.70.0030.00317.59
8.1.60.0000.00817.64
8.1.50.0000.00817.64
8.1.40.0060.00317.51
8.1.30.0080.00017.60
8.1.20.0040.00417.59
8.1.10.0080.00017.65
8.1.00.0050.00217.53
8.0.300.0090.00021.63
8.0.290.0040.00416.75
8.0.280.0040.00418.36
8.0.270.0050.00317.50
8.0.260.0030.00319.99
8.0.250.0070.00017.02
8.0.240.0030.00317.14
8.0.230.0030.00317.13
8.0.220.0030.00317.08
8.0.210.0070.00016.97
8.0.200.0000.00617.13
8.0.190.0000.00817.15
8.0.180.0000.00717.14
8.0.170.0070.00317.08
8.0.160.0080.00017.07
8.0.150.0000.00816.93
8.0.140.0040.00417.04
8.0.130.0030.00313.41
8.0.120.0050.00217.03
8.0.110.0070.00017.11
8.0.100.0000.00717.10
8.0.90.0000.00817.05
8.0.80.0030.01116.97
8.0.70.0000.00716.91
8.0.60.0040.00417.13
8.0.50.0040.00417.14
8.0.30.0130.00417.32
8.0.20.0090.01017.05
8.0.10.0040.00317.20
8.0.00.0170.00717.05
7.4.330.0030.00315.55
7.4.320.0030.00316.63
7.4.300.0000.00616.55
7.4.290.0030.00616.73
7.4.280.0000.00716.73
7.4.270.0030.00316.74
7.4.260.0000.00513.35
7.4.250.0070.00016.70
7.4.240.0020.00516.63
7.4.230.0070.00016.73
7.4.220.0040.00316.70
7.4.210.0070.01416.68
7.4.200.0000.00716.62
7.4.130.0120.00616.63
7.4.120.0160.01516.64
7.4.110.0080.01216.57
7.4.100.0070.01016.69
7.4.90.0060.01316.70
7.4.80.0100.00719.39
7.4.70.0110.00716.68
7.4.60.0110.00716.63
7.4.50.0030.01316.62
7.4.40.0150.00416.63
7.4.00.0070.01014.83
7.3.330.0040.00316.20
7.3.320.0030.00313.15
7.3.310.0000.00716.35
7.3.300.0040.00416.28
7.3.290.0130.00316.36
7.3.280.0080.00616.37
7.3.260.0080.01116.70
7.3.230.0100.00616.43
7.3.210.0090.00916.77
7.3.200.0150.00716.22
7.3.190.0130.00316.50
7.3.180.0070.01016.59
7.3.170.0100.00716.50
7.3.160.0120.00916.51
7.3.110.0090.00914.52
7.3.100.0040.01115.05
7.3.90.0120.00614.59
7.3.80.0090.00614.97
7.3.70.0090.01114.79
7.3.60.0030.01014.73
7.3.50.0150.00014.79
7.3.40.0060.00814.96
7.3.30.0080.00614.92
7.3.20.0090.00614.89
7.3.10.0030.01214.67
7.3.00.0090.00814.95
7.2.330.0140.00416.69
7.2.320.0110.00616.73
7.2.310.0100.00716.46
7.2.300.0070.01116.60
7.2.290.0100.00616.78
7.2.240.0060.00915.05
7.2.230.0080.01115.16
7.2.220.0060.01314.86
7.2.210.0100.00614.90
7.2.200.0060.01515.29
7.2.190.0030.01115.10
7.2.180.0030.01214.96
7.2.170.0130.00315.09
7.2.160.0120.00614.91
7.2.150.0090.00615.16
7.2.140.0070.01015.21
7.2.130.0040.01215.41
7.2.120.0130.00415.28
7.2.110.0090.00615.09
7.2.100.0100.00615.15
7.2.90.0270.01715.14
7.2.80.0080.00815.11
7.2.70.0040.01315.18
7.2.60.0100.00615.03
7.2.50.0080.00615.32
7.2.40.0070.00715.14
7.2.30.0160.00015.33
7.2.20.0040.01215.15
7.2.10.0060.01015.27
7.2.00.0120.00615.18
7.1.330.0200.00014.27
7.1.320.0080.00813.82
7.1.310.0100.00714.11
7.1.300.0080.00614.29
7.1.290.0080.00813.86
7.1.280.0070.00714.00
7.1.270.0060.00914.04
7.1.260.0070.00713.98
7.1.250.0200.01014.07

preferences:
36.07 ms | 400 KiB | 5 Q