3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_set = date("Y-m-d", strtotime('101-12-2024')); $date_now = date("d-m-Y"); // this format is string comparable if ($date_set > '20-12-2024') { echo 'greater than'; }else{ echo 'Less than'; }

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.20.0140.00721.38
8.4.10.0170.00319.56
8.3.150.0100.00617.24
8.3.140.0450.00316.60
8.3.130.0120.00918.14
8.3.120.0300.01016.38
8.3.110.0420.00416.56
8.3.100.0340.01216.31
8.3.90.0330.01316.38
8.3.80.0390.00816.75
8.3.70.0330.01116.59
8.3.60.0340.01116.55
8.3.50.0340.00816.72
8.3.40.0400.00017.62
8.3.30.0300.00717.63
8.3.20.0300.00717.57
8.3.10.0270.01017.72
8.3.00.0170.00417.59
8.2.270.0100.00716.50
8.2.260.0350.00416.74
8.2.250.0370.00316.55
8.2.240.0290.01116.21
8.2.230.0370.00016.40
8.2.220.0310.00816.64
8.2.210.0310.00716.34
8.2.200.0330.00716.66
8.2.190.0250.01416.59
8.2.180.0350.00416.57
8.2.170.0340.00317.82
8.2.160.0310.00717.92
8.2.150.0390.00317.54
8.2.140.0360.00617.54
8.2.130.0360.00617.79
8.2.120.0340.00817.58
8.2.110.0510.00417.12
8.2.100.0390.01117.52
8.2.90.0330.00717.78
8.2.80.0380.00317.66
8.2.70.0340.00917.45
8.2.60.0280.00617.57
8.2.50.0190.00617.77
8.2.40.0320.00617.64
8.2.30.0340.00317.52
8.2.20.0310.00617.71
8.2.10.0230.01417.57
8.2.00.0330.00417.76

preferences:
27.01 ms | 402 KiB | 5 Q