3v4l.org

run code in 300+ PHP versions simultaneously
<?php function CheckFrDate($CheckDate){ $BeginFrDate = date_create_from_format('d/m/Y', '22/09/1792'); $EndFrDate = date_create_from_format('d/m/Y', '22/09/1806'); if ( $CheckDate->getTimestamp() > $BeginFrDate->getTimestamp() && $CheckDate->getTimestamp() < $EndFrDate->getTimestamp()){ return 1; }else{ return -1; } } $CheckDate = date_create_from_format('d/m/Y', '23/09/1793'); var_dump(CheckFrDate($CheckDate));

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.4.140.0100.01017.96
8.4.130.0060.00317.89
8.4.120.0100.01023.78
8.4.110.0140.00621.82
8.4.100.0080.00418.94
8.4.90.0110.00918.65
8.4.80.0060.00818.52
8.4.70.0110.00918.18
8.4.60.0120.00818.97
8.4.50.0130.00718.67
8.4.40.0160.00317.50
8.4.30.0100.00020.52
8.4.20.0000.00822.49
8.4.10.0050.00522.02
8.3.270.0130.00616.63
8.3.260.0100.01017.02
8.3.250.0100.00818.79
8.3.240.0140.00517.05
8.3.230.0130.00716.79
8.3.220.0040.00318.95
8.3.210.0120.00916.71
8.3.200.0040.00416.54
8.3.190.0090.00518.88
8.3.180.0070.01317.45
8.3.170.0160.00319.05
8.3.160.0160.00318.37
8.3.150.0160.00017.29
8.3.140.0080.00016.73
8.3.130.0040.01818.29
8.3.120.0050.00220.91
8.3.110.0030.00618.43
8.3.100.0060.00918.45
8.3.90.0070.01126.77
8.3.80.0030.00617.97
8.3.70.0060.01216.50
8.3.60.0120.00320.21
8.3.50.0060.00916.56
8.3.40.0100.00722.03
8.3.30.0110.00420.34
8.3.20.0070.00024.18
8.3.10.0050.00324.66
8.3.00.0050.00326.16
8.2.290.0120.00720.25
8.2.280.0070.01218.51
8.2.270.0110.00716.95
8.2.260.0050.00316.44
8.2.250.0040.01116.66
8.2.240.0100.00617.15
8.2.230.0090.00920.94
8.2.220.0040.00424.06
8.2.210.0060.00326.77
8.2.200.0110.00016.63
8.2.190.0120.00316.58
8.2.180.0070.01018.18
8.2.170.0070.01118.91
8.2.160.0190.00022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00022.13
8.2.110.0000.01020.39
8.2.100.0090.00617.97
8.2.90.0060.00319.59
8.2.80.0120.00319.02
8.2.70.0120.00717.50
8.2.60.0140.00417.75
8.2.50.0190.00017.38
8.2.40.0150.00317.62
8.2.30.0170.00017.50
8.2.20.0050.01117.38
8.2.10.0120.00617.50
8.2.00.0070.01017.35
8.1.330.0090.01022.05
8.1.320.0040.00517.80
8.1.310.0040.00416.35
8.1.300.0060.00920.31
8.1.290.0040.00730.84
8.1.280.0100.00725.92
8.1.270.0070.01024.66
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.20
8.1.230.0060.00622.68
8.1.220.0120.00619.15
8.1.210.0210.00017.00
8.1.200.0150.00317.38
8.1.190.0110.00617.13
8.1.180.0150.00416.88
8.1.170.0160.00317.13
8.1.160.0120.00517.25
8.1.150.0080.00817.25
8.1.140.0130.00417.00
8.1.130.0120.00616.88
8.1.120.0090.00717.25
8.1.110.0030.01317.22
8.1.100.0140.00317.25
8.1.90.0120.00617.23
8.1.80.0130.00417.21
8.1.70.0120.00617.35
8.1.60.0110.00917.13
8.1.50.0140.00719.00
8.1.40.0120.00818.93
8.1.30.0160.00317.35
8.1.20.0120.00617.50
8.1.10.0190.00017.13
8.1.00.0130.00716.75
8.0.300.0040.00420.06
8.0.290.0150.00316.72
8.0.280.0110.00818.22
8.0.270.0150.00418.36
8.0.260.0110.00616.72
8.0.250.0180.00016.72
8.0.240.0140.00316.88
8.0.230.0060.01416.72
8.0.220.0150.00418.47
8.0.210.0180.00016.73
8.0.200.0120.00616.75
8.0.190.0150.00316.72
8.0.180.0150.00416.74
8.0.170.0100.00816.75
8.0.160.0110.00616.75
8.0.150.0110.00816.72
8.0.140.0100.00918.40
8.0.130.0160.00316.75
8.0.120.0190.00016.72
8.0.110.0110.00716.72
8.0.100.0150.00418.25
8.0.90.0130.00416.72
8.0.80.0130.00416.72
8.0.70.0120.00616.72
8.0.60.0090.00916.73
8.0.50.0170.00016.72
8.0.30.0150.00318.71
8.0.20.0140.00418.11
8.0.10.0110.00316.72

preferences:
29.46 ms | 403 KiB | 5 Q