3v4l.org

run code in 300+ PHP versions simultaneously
<?php $valueDate = \DateTime::createFromFormat('ymd', 150102); $bookDate = \DateTime::createFromFormat('ymd', $valueDate->format('y') . $valueDate->format('md')); if ((int)$bookDate->format('Y') < (int)$valueDate->format('Y')) { echo 123; }

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.00618.56
8.3.50.0150.00621.97
8.3.40.0090.00618.79
8.3.30.0040.01118.84
8.3.20.0070.00020.37
8.3.10.0110.00018.80
8.3.00.0080.00020.66
8.2.180.0100.00718.18
8.2.170.0090.00622.96
8.2.160.0030.01322.12
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0000.00721.00
8.2.110.0030.00619.20
8.1.280.0160.00625.92
8.1.270.0070.01124.02
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00019.14
7.4.10.0140.00316.66
7.4.00.0070.01015.79
7.3.130.0070.01016.36
7.3.120.0100.00716.51
7.3.110.0070.00316.54
7.3.100.0090.00916.30
7.3.90.0000.01516.37
7.3.80.0040.01116.34
7.3.70.0100.00316.59
7.3.60.0040.01116.29
7.3.50.0070.00716.26
7.3.40.0090.00616.52
7.3.30.0060.00616.35
7.3.20.0110.00318.15
7.3.10.0060.01218.26
7.3.00.0100.00618.20
7.2.260.0090.00916.72
7.2.250.0030.01716.67
7.2.240.0030.00916.36
7.2.230.0120.00616.77
7.2.220.0060.00916.76
7.2.210.0060.00816.43
7.2.200.0040.00716.63
7.2.190.0040.01116.59
7.2.180.0000.01416.69
7.2.170.0000.01316.56
7.2.160.0030.00616.54
7.2.150.0090.00618.47
7.2.140.0090.00618.53
7.2.130.0090.00618.38
7.2.120.0150.00618.53
7.2.110.0030.01718.53
7.2.100.0080.01118.49
7.2.90.0090.00918.42
7.2.80.0110.01118.18
7.2.70.0130.00318.21
7.2.60.0050.01017.69
7.2.50.0060.01018.43
7.2.40.0030.01318.43
7.2.30.0030.01618.48
7.2.20.0090.00918.46
7.2.10.0100.01018.40
7.2.00.0080.00718.93
7.1.330.0070.01017.30
7.1.320.0090.01217.32
7.1.310.0070.00317.32
7.1.300.0040.01017.32
7.1.290.0000.01117.43
7.1.280.0110.00017.23
7.1.270.0030.01017.18
7.1.260.0060.00917.26
7.1.250.0030.01017.18
7.1.240.0090.00917.40
7.1.230.0110.00817.25
7.1.220.0070.01117.35
7.1.210.0120.00617.34
7.1.200.0050.00916.50
7.1.190.0170.00317.39
7.1.180.0060.01517.30
7.1.170.0060.00917.34
7.1.160.0080.00817.30
7.1.150.0080.00617.36
7.1.140.0090.00917.17
7.1.130.0030.01217.41
7.1.120.0110.00417.41
7.1.110.0000.01417.34
7.1.100.0070.00817.72
7.1.90.0060.01217.35
7.1.80.0030.01317.37
7.1.70.0050.00517.25
7.1.60.0020.01718.33
7.1.50.0120.00817.19
7.1.40.0090.00917.30
7.1.30.0150.00417.13
7.1.20.0040.01517.34
7.1.10.0070.01017.41
7.1.00.0050.04319.88
7.0.330.0180.01117.01
7.0.320.0130.01317.15
7.0.310.0160.01217.01
7.0.300.0200.00616.98
7.0.290.0150.00917.08
7.0.280.0140.01416.91
7.0.270.0130.01316.95
7.0.260.0150.00917.25
7.0.250.0170.01017.27
7.0.240.0180.00917.11
7.0.230.0100.01617.23
7.0.220.0100.01317.03
7.0.210.0120.01517.01
7.0.200.0240.01515.99
7.0.190.0160.00313.13
7.0.180.0080.00813.13
7.0.170.0190.00717.18
7.0.160.0200.00013.13
7.0.150.0220.00616.98
7.0.140.0140.01417.07
7.0.130.0190.00916.82
7.0.120.0280.00317.09
7.0.110.0230.00617.04
7.0.100.0180.01217.11
7.0.90.0130.01317.02
7.0.80.0080.00813.13
7.0.70.0190.00013.13
7.0.60.0150.03819.24
7.0.50.0090.04415.50
7.0.40.0100.02216.68
7.0.30.0270.04017.62
7.0.20.0260.03816.56
7.0.10.0090.05116.65
7.0.00.0110.05017.53
5.6.400.0110.00915.89
5.6.390.0150.00713.13
5.6.380.0170.01015.91
5.6.370.0150.01315.79
5.6.360.0210.00615.84
5.6.350.0120.01616.16
5.6.340.0180.01415.92
5.6.330.0210.01315.89
5.6.320.0270.00316.21
5.6.310.0130.00713.13
5.6.300.0110.00613.13
5.6.290.0130.00913.13
5.6.280.0090.02418.54
5.6.270.0140.00213.13
5.6.260.0180.00413.13
5.6.250.0160.00213.13
5.6.240.0080.01915.98
5.6.230.0090.01816.07
5.6.220.0170.01316.00
5.6.210.0080.04118.27
5.6.200.0100.02517.09
5.6.190.0100.04318.25
5.6.180.0370.03818.26
5.6.170.0220.03218.23
5.6.160.0130.04216.79
5.6.150.0180.03817.16
5.6.140.0100.02215.62
5.6.130.0070.03715.62
5.6.120.0160.03317.13
5.6.110.0090.02417.08
5.6.100.0120.04418.44
5.6.90.0060.03317.06
5.6.80.0110.04416.80
5.6.70.0170.01215.81
5.6.60.0160.01315.59
5.6.50.0220.00013.13
5.6.40.0190.00915.87
5.6.30.0150.01515.68
5.6.20.0110.01715.60
5.6.10.0280.00015.81
5.6.00.0240.00515.80
5.5.380.0140.01415.91
5.5.370.0170.01315.98
5.5.360.0170.00013.13
5.5.350.2190.02618.04
5.5.340.0110.03416.89
5.5.330.0170.02218.17
5.5.320.0400.03718.09
5.5.310.0210.04318.04
5.5.300.0160.02816.89
5.5.290.0140.02516.94
5.5.280.0110.04018.34
5.5.270.0080.02718.36
5.5.260.0070.05518.36
5.5.250.0120.04418.30
5.5.240.0050.04318.00
5.5.230.0230.00615.89
5.5.220.0190.00815.73
5.5.210.0160.01115.79
5.5.200.0150.01015.85
5.5.190.0080.00813.13
5.5.180.0170.01115.71
5.5.170.0130.01315.84
5.5.160.0120.01215.82
5.5.150.0210.00615.84
5.5.140.0160.00815.98
5.5.130.0120.01215.83
5.5.120.0160.01215.86
5.5.110.0160.01216.01
5.5.100.0240.00415.88
5.5.90.0200.00715.84
5.5.80.0150.01215.92
5.5.70.0120.01215.96
5.5.60.0150.00715.93
5.5.50.0140.01015.74
5.5.40.0120.01615.73
5.5.30.0080.02015.83
5.5.20.0170.01015.91
5.5.10.0150.01215.61
5.5.00.0170.01215.70

preferences:
41.55 ms | 401 KiB | 5 Q