3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_now = date("Y-m-d"); // this format is string comparable if ('2023-03-18' > '2023-02-02') { 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.3.60.0130.00916.38
8.3.50.0120.00918.61
8.3.40.0170.00320.04
8.3.30.0110.00418.82
8.3.20.0050.00324.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.180.0180.00416.38
8.2.170.0140.00719.05
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0000.00821.05
8.2.110.0000.01021.04
8.2.100.0110.00017.91
8.2.90.0090.00017.91
8.2.80.0030.00720.01
8.2.70.0000.00817.75
8.2.60.0030.00617.75
8.2.50.0050.00317.75
8.2.40.0120.00617.62
8.2.30.0060.00917.63
8.2.20.0160.00017.62
8.2.10.0130.00317.62
8.2.00.0150.00317.62
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00322.55
8.1.230.0040.00720.89
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0000.00917.35
8.1.180.0080.00418.10
8.1.170.0130.00317.62
8.1.160.0090.00617.62
8.1.150.0120.00417.62
8.1.140.0070.01017.62
8.1.130.0150.00317.62
8.1.120.0150.00017.62
8.1.110.0160.00017.62
8.1.100.0040.01317.62
8.1.90.0140.00517.62
8.1.80.0150.00317.62
8.1.70.0000.01617.62
8.1.60.0110.00617.62
8.1.50.0130.00417.62
8.1.40.0170.00017.62
8.1.30.0160.00517.62
8.1.20.0150.00317.62
8.1.10.0120.00517.62
8.1.00.0140.00517.62
8.0.300.0000.00820.04
8.0.290.0060.00316.75
8.0.280.0110.00617.62
8.0.270.0080.00817.62
8.0.260.0090.00917.62
8.0.250.0120.00417.62
8.0.240.0110.00517.62
8.0.230.0120.00417.62
8.0.220.0060.01217.62
8.0.210.0150.00217.62
8.0.200.0170.00017.62
8.0.190.0160.00017.62
8.0.180.0100.00617.62
8.0.170.0140.00317.62
8.0.160.0170.00017.62
8.0.150.0120.00517.62
8.0.140.0040.01317.62
8.0.130.0120.00417.62
8.0.120.0160.00017.62
8.0.110.0130.00217.62
8.0.100.0120.00317.62
8.0.90.0120.00217.62
8.0.80.0080.00817.62
8.0.70.0120.00317.62
8.0.60.0130.00317.62
8.0.50.0120.00617.62
8.0.30.0110.00417.62
8.0.20.0150.00017.62
8.0.10.0140.00317.62

preferences:
50.7 ms | 400 KiB | 5 Q