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' < '2016-01-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.00.0080.01219.90
8.4.150.0030.00014.05
8.4.140.0140.00717.43
8.4.130.0130.00717.88
8.4.120.0120.00720.32
8.4.110.0130.00722.43
8.4.100.0110.00817.99
8.4.90.0120.00918.68
8.4.80.0130.00718.07
8.4.70.0100.01217.83
8.4.60.0120.01118.79
8.4.50.0110.01017.85
8.4.40.0040.00420.43
8.4.30.0030.00618.93
8.4.20.0100.01019.69
8.4.10.0150.00423.61
8.3.280.0140.00718.63
8.3.270.0130.00716.81
8.3.260.0140.00416.57
8.3.250.0130.00518.89
8.3.240.0060.00516.86
8.3.230.0100.01016.45
8.3.220.0040.00417.36
8.3.210.0110.01016.71
8.3.200.0090.00516.77
8.3.190.0100.00817.21
8.3.180.0060.00216.62
8.3.170.0070.01117.18
8.3.160.0090.00918.46
8.3.150.0110.00718.96
8.3.140.0060.00318.35
8.3.130.0090.00016.74
8.3.120.0130.00718.94
8.3.110.0000.00820.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0060.00318.43
8.3.70.0210.00018.20
8.3.60.0170.00718.30
8.3.50.0190.00616.66
8.3.40.0030.01020.23
8.3.30.0070.00718.82
8.3.20.0030.00524.18
8.3.10.0070.00024.66
8.3.00.0000.00726.16
8.2.290.0080.00320.57
8.2.280.0090.01018.31
8.2.270.0120.00616.84
8.2.260.0070.01018.74
8.2.250.0090.00918.59
8.2.240.0090.00616.60
8.2.230.0030.01622.58
8.2.220.0050.00537.54
8.2.210.0030.00626.77
8.2.200.0030.00718.41
8.2.190.0150.00616.58
8.2.180.0110.00716.38
8.2.170.0110.00319.05
8.2.160.0040.01122.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0040.00720.82
8.2.100.0040.00817.84
8.2.90.0050.00318.34
8.2.80.0000.00818.22
8.2.70.0040.00417.63
8.2.60.0040.00817.38
8.2.50.0030.00617.63
8.2.40.0120.00817.63
8.2.30.0160.00017.62
8.2.20.0140.00417.62
8.2.10.0200.00217.62
8.2.00.0090.00917.62
8.1.330.0060.00721.63
8.1.320.0100.01016.09
8.1.310.0180.00016.75
8.1.300.0080.01116.01
8.1.290.0090.00318.88
8.1.280.0040.01825.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00022.59
8.1.230.0040.00820.94
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.47
8.1.190.0050.00317.35
8.1.180.0070.00318.10
8.1.170.0120.00617.62
8.1.160.0150.00017.62
8.1.150.0160.00017.62
8.1.140.0070.01017.62
8.1.130.0140.00317.62
8.1.120.0170.00317.62
8.1.110.0150.00417.62
8.1.100.0110.00517.62
8.1.90.0100.00517.62
8.1.80.0130.00317.62
8.1.70.0080.00817.62
8.1.60.0160.00317.62
8.1.50.0120.00517.62
8.1.40.0110.00817.62
8.1.30.0080.00817.62
8.1.20.0130.00617.62
8.1.10.0090.00917.62
8.1.00.0120.00617.62
8.0.300.0000.00720.08
8.0.290.0030.00516.88
8.0.280.0150.00217.62
8.0.270.0000.01817.62
8.0.260.0000.01717.62
8.0.250.0130.00317.62
8.0.240.0110.00617.62
8.0.230.0160.00017.62
8.0.220.0170.00017.62
8.0.210.0100.00617.62
8.0.200.0170.00017.62
8.0.190.0090.00917.62
8.0.180.0050.01117.62
8.0.170.0050.01117.62
8.0.160.0000.01517.62
8.0.150.0100.00717.62
8.0.140.0150.00017.62
8.0.130.0150.00417.62
8.0.120.0110.00717.62
8.0.110.0170.00017.62
8.0.100.0050.01017.62
8.0.90.0080.00817.62
8.0.80.0140.00217.62
8.0.70.0100.00517.62
8.0.60.0060.01017.62
8.0.50.0140.00417.62
8.0.30.0070.00717.62
8.0.20.0140.00317.62
8.0.10.0120.00417.62

preferences:
96.17 ms | 403 KiB | 5 Q