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-04-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.5.10.0110.00719.99
8.5.00.0130.00720.05
8.4.150.0020.00014.05
8.4.140.0170.01017.53
8.4.130.0110.00817.64
8.4.120.0110.00822.05
8.4.110.0120.00818.89
8.4.100.0160.00317.61
8.4.90.0030.00617.97
8.4.80.0100.01018.07
8.4.70.0180.00317.85
8.4.60.0160.00917.59
8.4.50.0110.00919.79
8.4.40.0080.00020.56
8.4.30.0000.00918.92
8.4.20.0100.01019.58
8.4.10.0120.00823.70
8.3.280.0100.01118.42
8.3.270.0130.00616.59
8.3.260.0100.00916.63
8.3.250.0110.00918.98
8.3.240.0110.00816.85
8.3.230.0060.00416.57
8.3.220.0120.00717.13
8.3.210.0040.00416.68
8.3.200.0120.00718.67
8.3.190.0120.00716.71
8.3.180.0110.00816.52
8.3.170.0070.01117.25
8.3.160.0140.00416.61
8.3.150.0150.00319.04
8.3.140.0000.00817.13
8.3.130.0030.00518.53
8.3.120.0080.00318.76
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0130.00626.77
8.3.80.0060.00317.97
8.3.70.0150.00418.30
8.3.60.0100.01016.32
8.3.50.0070.01416.48
8.3.40.0100.01020.13
8.3.30.0060.01018.71
8.3.20.0030.00624.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.290.0110.00820.28
8.2.280.0100.00816.84
8.2.270.0130.00616.54
8.2.260.0110.00719.03
8.2.250.0080.00016.88
8.2.240.0110.00718.83
8.2.230.0060.00322.58
8.2.220.0090.01237.54
8.2.210.0110.00726.77
8.2.200.0030.00618.43
8.2.190.0120.00616.58
8.2.180.0190.00316.50
8.2.170.0170.00318.80
8.2.160.0070.01322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00826.16
8.2.110.0030.00720.20
8.2.100.0030.00817.97
8.2.90.0050.00317.88
8.2.80.0040.00418.91
8.2.70.0000.00917.75
8.2.60.0030.00517.75
8.2.50.0020.00517.75
8.2.40.0090.00917.62
8.2.30.0140.00317.62
8.2.20.0150.00217.62
8.2.10.0110.00617.62
8.2.00.0120.00417.62
8.1.330.0090.01116.77
8.1.320.0140.00616.21
8.1.310.0000.00816.76
8.1.300.0090.00017.78
8.1.290.0030.00630.84
8.1.280.0140.00325.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00319.39
8.1.230.0040.00817.76
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0080.00017.48
8.1.180.0000.00818.10
8.1.170.0120.00517.62
8.1.160.0140.00317.62
8.1.150.0110.00517.62
8.1.140.0130.00317.62
8.1.130.0160.00017.62
8.1.120.0090.00917.62
8.1.110.0110.00617.62
8.1.100.0190.00417.62
8.1.90.0120.00417.62
8.1.80.0140.00217.62
8.1.70.0090.00717.62
8.1.60.0170.00017.62
8.1.50.0090.00917.62
8.1.40.0150.00417.62
8.1.30.0180.00017.62
8.1.20.0150.00417.62
8.1.10.0170.00017.62
8.1.00.0100.00717.62
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0180.00017.62
8.0.270.0160.00017.62
8.0.260.0120.00517.62
8.0.250.0120.00317.62
8.0.240.0160.00017.62
8.0.230.0040.01317.62
8.0.220.0120.00617.62
8.0.210.0100.00617.62
8.0.200.0130.00217.62
8.0.190.0150.00217.62
8.0.180.0120.00417.62
8.0.170.0100.00817.62
8.0.160.0080.00817.62
8.0.150.0110.00417.62
8.0.140.0150.00017.62
8.0.130.0120.00417.62
8.0.120.0120.00617.62
8.0.110.0090.00617.62
8.0.100.0000.01617.62
8.0.90.0080.00817.62
8.0.80.0120.00417.62
8.0.70.0100.00617.62
8.0.60.0150.00017.62
8.0.50.0110.00517.62
8.0.30.0130.00317.62
8.0.20.0080.00817.62
8.0.10.0120.00317.62

preferences:
102.54 ms | 403 KiB | 5 Q