3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = DateTime::createFromFormat('H:i', '08:00'); $date2 = new DateTime(); if ($date1 > $date2) { echo 'It is after 08:00'; } else { echo 'It is not after 08:00'; }

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.140.0040.01416.55
8.3.130.0090.00016.79
8.3.120.0030.01718.93
8.3.110.0060.00620.94
8.3.100.0100.00324.06
8.3.90.0060.00326.77
8.3.80.0060.00316.75
8.3.70.0220.00016.75
8.3.60.0120.00916.63
8.3.50.0110.01022.03
8.3.40.0090.01218.82
8.3.30.0170.00319.14
8.3.20.0040.00420.16
8.3.10.0060.00323.48
8.3.00.0040.00419.43
8.2.250.0090.00618.51
8.2.240.0060.00317.05
8.2.230.0090.00022.58
8.2.220.0090.00637.54
8.2.210.0070.00726.77
8.2.200.0000.01116.63
8.2.190.0070.01416.75
8.2.180.0120.00325.92
8.2.170.0100.00719.08
8.2.160.0090.00922.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00020.90
8.2.110.0030.00620.24
8.2.100.0030.00918.03
8.2.90.0080.00017.75
8.2.80.0000.00919.03
8.2.70.0030.00517.75
8.2.60.0030.00617.75
8.2.50.0000.00918.07
8.2.40.0040.00418.34
8.2.30.0050.00318.18
8.2.20.0000.00817.89
8.2.10.0000.00818.09
8.2.00.0030.00517.86
8.1.300.0110.00016.56
8.1.290.0040.00418.88
8.1.280.0080.00825.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.88
8.1.230.0070.00322.73
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0080.00017.47
8.1.190.0050.00317.48
8.1.180.0040.00418.10
8.1.170.0030.00618.54
8.1.160.0040.00421.92
8.1.150.0000.00818.84
8.1.140.0080.00017.67
8.1.130.0030.00317.83
8.1.120.0000.00817.70
8.1.110.0000.00817.64
8.1.100.0040.00417.54
8.1.90.0050.00217.70
8.1.80.0080.00017.66
8.1.70.0050.00317.57
8.1.60.0050.00317.62
8.1.50.0050.00317.56
8.1.40.0060.00317.54
8.1.30.0040.00417.72
8.1.20.0040.00417.86
8.1.10.0030.00617.63
8.1.00.0000.00717.70
8.0.300.0030.00518.77
8.0.290.0000.00916.75
8.0.280.0000.00718.50
8.0.270.0080.00017.29
8.0.260.0030.00317.23
8.0.250.0050.00217.04
8.0.240.0030.00317.10
8.0.230.0030.00417.17
8.0.220.0000.00817.02
8.0.210.0000.00717.14
8.0.200.0030.00317.01
8.0.190.0040.00417.14
8.0.180.0080.00417.16
8.0.170.0060.00317.04
8.0.160.0040.00416.96
8.0.150.0000.00717.09
8.0.140.0000.00717.05
8.0.130.0000.00513.44
8.0.120.0000.00816.97
8.0.110.0000.00716.90
8.0.100.0070.00016.95
8.0.90.0000.00817.04
8.0.80.0040.01216.97
8.0.70.0070.00016.99
8.0.60.0030.00517.14
8.0.50.0050.00316.89
8.0.30.0060.01217.32
8.0.20.0100.01017.40
8.0.10.0040.00417.22
8.0.00.0090.00916.92
7.4.330.0050.00015.08
7.4.320.0000.00616.54
7.4.300.0060.00016.58
7.4.290.0040.00416.73
7.4.280.0070.00016.64
7.4.270.0070.00016.74
7.4.260.0030.00316.51
7.4.250.0000.00716.69
7.4.240.0020.00516.61
7.4.230.0030.00316.63
7.4.220.0160.00316.71
7.4.210.0030.01316.75
7.4.200.0000.00716.54
7.4.150.0150.01217.40
7.4.140.0090.00917.86
7.4.130.0040.01616.59
7.4.120.0090.01216.59
7.4.110.0100.01316.51
7.4.100.0070.01016.59
7.4.90.0100.01016.64
7.4.80.0100.01119.39
7.4.70.0160.00016.63
7.4.60.0120.00316.73
7.4.50.0000.00616.34
7.4.40.0090.00616.71
7.4.30.0100.00716.65
7.4.00.0000.01315.01
7.3.330.0060.00013.15
7.3.320.0000.00613.22
7.3.310.0070.00016.38
7.3.300.0000.00716.31
7.3.290.0110.00316.30
7.3.280.0090.01116.34
7.3.270.0040.01417.40
7.3.260.0140.00716.70
7.3.250.0090.01116.45
7.3.240.0130.00316.47
7.3.230.0120.01216.59
7.3.210.0130.01016.47
7.3.200.0130.00319.39
7.3.190.0060.01216.36
7.3.180.0100.00616.41
7.3.170.0100.01016.41
7.3.160.0130.00316.54
7.3.120.0060.00615.02
7.3.10.0060.00916.51
7.3.00.0080.00616.39
7.2.330.0110.00716.47
7.2.320.0000.01716.76
7.2.310.0130.00316.82
7.2.300.0040.01416.66
7.2.290.0070.01016.66
7.2.130.0070.00717.29
7.2.120.0040.00816.96
7.2.110.0030.00716.82
7.2.100.0060.00616.89
7.2.90.0060.00817.27
7.2.80.0030.01016.83
7.2.70.0000.00917.12
7.2.60.0040.00817.08
7.2.50.0060.00617.21
7.2.40.0060.00617.20
7.2.30.0040.01117.13
7.2.20.0000.01316.88
7.2.10.0030.00716.75
7.2.00.0070.00417.25
7.1.250.0000.01315.75
7.1.200.0070.00715.91
7.1.70.0000.01217.33
7.1.60.0100.01319.70
7.1.50.0170.00716.95
7.1.00.0030.07722.45
7.0.200.0030.00716.81
7.0.140.0000.07322.22
7.0.110.0100.07721.70
7.0.100.0030.08021.75
7.0.90.0000.08721.76
7.0.80.0070.07321.64
7.0.70.0130.07021.66
7.0.60.0130.07321.64
7.0.50.0000.08321.62
7.0.40.0100.07719.59
7.0.30.0030.07319.80
7.0.20.0000.08019.72
7.0.10.0170.07019.67
7.0.00.0000.07019.72
5.6.280.0030.07021.09
5.6.260.0000.08020.84
5.6.250.0030.08320.64
5.6.240.0030.08720.63
5.6.230.0030.07720.79
5.6.220.0130.07320.59
5.6.210.0030.05320.75
5.6.200.0070.04720.51
5.6.190.0070.08020.42
5.6.180.0030.08320.56
5.6.170.0030.05320.58
5.6.160.0000.08720.64
5.6.150.0000.08320.42
5.6.140.0030.05320.59
5.6.130.0070.07020.59
5.6.120.0070.07320.64
5.6.110.0100.07020.52
5.6.100.0030.08320.56
5.6.90.0000.08020.58
5.6.80.0070.05019.94
5.6.70.0030.07319.78
5.6.60.0070.06719.97
5.6.50.0000.08319.94
5.6.40.0000.07019.86
5.6.30.0070.07720.00
5.6.20.0070.04319.94
5.6.10.0000.08719.85
5.6.00.0070.06719.88
5.5.380.0070.08320.48
5.5.370.0070.08020.48
5.5.360.0030.07320.50
5.5.350.0030.07320.37
5.5.340.0030.04320.72
5.5.330.0100.07720.75
5.5.320.0000.08320.96
5.5.310.0000.08020.86
5.5.300.0000.08720.72
5.5.290.0070.07720.98
5.5.280.0070.08020.84
5.5.270.0130.04320.88
5.5.260.0100.06020.89
5.5.250.0100.07320.77
5.5.240.0070.07020.31
5.5.230.0030.07720.30
5.5.220.0000.08320.18
5.5.210.0100.07020.10
5.5.200.0100.07320.11
5.5.190.0000.07020.19
5.5.180.0130.05720.20
5.5.160.0070.05720.04
5.5.150.0000.08020.23
5.5.140.0000.06020.32
5.5.130.0130.06720.23
5.5.120.0070.08020.06
5.5.110.0030.07720.13
5.5.100.0030.04720.17
5.5.90.0130.06719.92
5.5.80.0000.08020.19
5.5.70.0030.07720.08
5.5.60.0030.07720.09
5.5.50.0030.04720.15
5.5.40.0070.07320.07
5.5.30.0070.07319.92
5.5.20.0030.07020.02
5.5.10.0030.07020.16
5.5.00.0000.05719.95
5.4.450.0070.06719.45
5.4.440.0030.08019.21
5.4.430.0030.08019.29
5.4.420.0130.07019.38
5.4.410.0000.07719.41
5.4.400.0070.07318.92
5.4.390.0000.08319.04
5.4.380.0030.07319.02
5.4.370.0000.07319.06
5.4.360.0000.07719.04
5.4.350.0070.07318.95
5.4.340.0030.07719.07
5.4.320.0030.08019.06
5.4.310.0100.07019.03
5.4.300.0030.07319.06
5.4.290.0000.08019.04
5.4.280.0070.07318.97
5.4.270.0100.06719.21
5.4.260.0000.04319.12
5.4.250.0000.08318.95
5.4.240.0070.06318.95
5.4.230.0000.08319.20
5.4.220.0100.07019.10
5.4.210.0030.06318.95
5.4.200.0030.07718.96
5.4.190.0030.07718.96
5.4.180.0030.07019.09
5.4.170.0070.07319.11
5.4.160.0070.07718.95
5.4.150.0030.08019.16
5.4.140.0070.06716.17
5.4.130.0030.07316.46
5.4.120.0100.06316.25
5.4.110.0030.07316.49
5.4.100.0030.06016.27
5.4.90.0030.04716.53
5.4.80.0100.06716.26
5.4.70.0100.06016.36
5.4.60.0070.06716.41
5.4.50.0030.07016.42
5.4.40.0000.07716.34
5.4.30.0100.05716.10
5.4.20.0070.06716.29
5.4.10.0100.07016.44
5.4.00.0070.06315.86
5.3.290.0070.07014.65
5.3.280.0030.07314.61
5.3.270.0030.07314.68
5.3.260.0100.06714.44
5.3.250.0000.08014.56
5.3.240.0030.07314.52
5.3.230.0070.07714.43
5.3.220.0030.07014.34
5.3.210.0100.07314.34
5.3.200.0030.07314.39
5.3.190.0030.07014.49
5.3.180.0030.07714.57
5.3.170.0000.07714.46
5.3.160.0000.04714.44
5.3.150.0000.07714.43
5.3.140.0000.07714.45
5.3.130.0030.07714.33
5.3.120.0030.07314.39
5.3.110.0030.07714.36
5.3.100.0030.06713.98
5.3.90.0070.05313.80
5.3.80.0030.03314.02
5.3.70.0070.03014.02
5.3.60.0030.03313.93
5.3.50.0000.03713.85
5.3.40.0030.03713.84
5.3.30.0130.02313.68
5.3.20.0030.03313.58
5.3.10.0030.06013.59
5.3.00.0000.03313.72
5.2.170.0030.02711.19
5.2.160.0030.03011.03
5.2.150.0000.04011.15
5.2.140.0000.03011.21
5.2.130.0030.02711.07
5.2.120.0000.03310.88
5.2.110.0030.02311.25
5.2.100.0000.03011.16
5.2.90.0000.03711.00
5.2.80.0000.03011.01
5.2.70.0030.02710.98
5.2.60.0070.03711.05
5.2.50.0000.02710.95
5.2.40.0000.04010.91
5.2.30.0030.04710.96
5.2.20.0000.04010.89
5.2.10.0030.02310.74
5.2.00.0000.03010.66
5.1.60.0000.0409.90
5.1.50.0000.0239.90
5.1.40.0070.0279.93
5.1.30.0000.02710.42
5.1.20.0000.02310.33
5.1.10.0000.0279.97
5.1.00.0000.02310.30
5.0.50.0030.0178.98
5.0.40.0000.0208.98
5.0.30.0030.0308.98
5.0.20.0030.0178.98
5.0.10.0000.0208.98
5.0.00.0000.0338.98
4.4.90.0000.0138.98
4.4.80.0000.0178.98
4.4.70.0030.0178.98
4.4.60.0000.0138.98
4.4.50.0000.0138.98
4.4.40.0000.0238.98
4.4.30.0030.0138.98
4.4.20.0000.0138.98
4.4.10.0030.0138.98
4.4.00.0000.0238.98
4.3.110.0000.0138.98
4.3.100.0000.0138.98
4.3.90.0000.0178.98
4.3.80.0000.0208.98
4.3.70.0000.0138.98
4.3.60.0000.0178.98
4.3.50.0000.0138.98
4.3.40.0030.0338.98
4.3.30.0030.0108.98
4.3.20.0000.0178.98
4.3.10.0000.0178.98
4.3.00.0000.0278.98

preferences:
59.13 ms | 403 KiB | 5 Q