3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_now = date("Y-m-d"); // this format is string comparable if ('2023-04-08' > '2023-03-18') { 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.0090.00819.91
8.5.00.0090.01219.94
8.4.160.0140.00723.88
8.4.150.0010.00114.05
8.4.140.0130.01017.61
8.4.130.0110.00918.19
8.4.120.0130.00720.71
8.4.110.0120.00822.28
8.4.100.0050.00417.73
8.4.90.0110.01018.76
8.4.80.0150.00519.76
8.4.70.0050.00417.80
8.4.60.0130.00720.52
8.4.50.0090.01217.77
8.4.40.0040.00420.48
8.4.30.0030.00618.85
8.4.20.0130.00719.79
8.4.10.0070.01023.70
8.3.280.0110.00818.61
8.3.270.0130.00616.78
8.3.260.0150.00516.84
8.3.250.0110.00818.64
8.3.240.0140.00516.71
8.3.230.0090.01016.38
8.3.220.0050.00217.07
8.3.210.0090.01016.48
8.3.200.0040.00516.45
8.3.190.0100.00517.00
8.3.180.0060.00218.50
8.3.170.0170.00017.29
8.3.160.0160.00318.43
8.3.150.0130.00717.36
8.3.140.0000.00818.67
8.3.130.0040.01216.80
8.3.120.0030.00618.86
8.3.110.0060.00320.94
8.3.100.0080.00024.06
8.3.90.0030.00626.77
8.3.80.0040.00716.75
8.3.70.0180.00418.43
8.3.60.0170.00316.49
8.3.50.0100.01016.55
8.3.40.0090.00920.27
8.3.30.0040.01218.80
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0080.00026.16
8.2.290.0050.00420.21
8.2.280.0070.01318.55
8.2.270.0080.00017.41
8.2.260.0080.00820.58
8.2.250.0060.00316.60
8.2.240.0090.00016.38
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0140.00026.77
8.2.200.0060.00316.75
8.2.190.0070.00716.58
8.2.180.0160.00618.29
8.2.170.0070.00719.08
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00326.16
8.2.110.0030.00620.78
8.2.100.0090.00317.97
8.2.90.0030.00518.03
8.2.80.0050.00319.26
8.2.70.0060.00317.75
8.2.60.0000.00917.63
8.2.50.0000.00817.63
8.2.40.0140.00217.62
8.2.30.0090.00717.62
8.2.20.0130.00317.62
8.2.10.0160.00017.62
8.2.00.0110.00517.62
8.1.330.0100.01022.15
8.1.320.0100.00916.31
8.1.310.0120.00616.54
8.1.300.0030.00618.07
8.1.290.0000.00918.88
8.1.280.0080.00825.92
8.1.270.0050.00324.66
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0040.00422.09
8.1.230.0080.00320.88
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0080.00017.23
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0110.00517.62
8.1.160.0120.00417.62
8.1.150.0150.00017.62
8.1.140.0110.00517.62
8.1.130.0080.00817.62
8.1.120.0080.00817.62
8.1.110.0140.00317.62
8.1.100.0140.00317.62
8.1.90.0110.00717.62
8.1.80.0140.00417.62
8.1.70.0050.01017.62
8.1.60.0130.00417.62
8.1.50.0080.00817.62
8.1.40.0140.00317.62
8.1.30.0170.00017.62
8.1.20.0250.00017.62
8.1.10.0140.00417.62
8.1.00.0140.00317.62
8.0.300.0030.00320.14
8.0.290.0000.00816.63
8.0.280.0110.00617.62
8.0.270.0130.00317.62
8.0.260.0140.00317.62
8.0.250.0100.00517.62
8.0.240.0100.00517.62
8.0.230.0140.00317.62
8.0.220.0030.01317.62
8.0.210.0090.00917.62
8.0.200.0150.00217.62
8.0.190.0110.00617.62
8.0.180.0080.00817.62
8.0.170.0140.00317.62
8.0.160.0050.01417.62
8.0.150.0140.00517.62
8.0.140.0110.00517.62
8.0.130.0160.00017.62
8.0.120.0050.01117.62
8.0.110.0150.00017.62
8.0.100.0150.00017.62
8.0.90.0140.00217.62
8.0.80.0180.00017.62
8.0.70.0130.00317.62
8.0.60.0110.00417.62
8.0.50.0100.00617.62
8.0.30.0150.00017.62
8.0.20.0100.00517.62
8.0.10.0110.00417.62

preferences:
16.96 ms | 403 KiB | 5 Q