3v4l.org

run code in 300+ PHP versions simultaneously
<?php libxml_set_external_entity_loader(function ($public_id, $system_id, $context) { var_dump($public_id, $system_id, $context); return "other"; }); $doc = new DOMDocument; $doc->loadHTMLFile("foobar");

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.70.0070.01518.43
8.3.60.0180.00616.63
8.3.50.0110.00316.67
8.3.40.0150.00021.73
8.3.30.0110.00419.08
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.190.0060.01017.00
8.2.180.0130.00716.75
8.2.170.0040.01119.20
8.2.160.0060.00922.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00022.55
8.2.110.0040.00419.50
8.2.100.0050.00718.03
8.2.90.0280.00617.69
8.2.80.0280.00417.44
8.2.70.0270.00517.23
8.2.60.0180.00318.40
8.2.50.0240.00517.30
8.2.40.0250.00317.38
8.2.30.0170.01117.50
8.2.20.0200.00917.69
8.2.10.0260.00317.56
8.2.00.0280.00317.44
8.1.280.0070.01325.92
8.1.270.0130.00622.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.45
8.1.230.0080.00421.06
8.1.220.0220.00617.43
8.1.210.0180.01117.30
8.1.200.0260.00817.05
8.1.190.0260.00217.31
8.1.180.0190.01017.13
8.1.170.0240.00317.19
8.1.160.0210.00717.13
8.1.150.0240.00617.31
8.1.140.0210.00717.17
8.1.130.0230.00617.38
8.1.120.0230.00617.31
8.1.110.0230.00517.31
8.1.100.0210.00617.30
8.1.90.0200.00617.44
8.1.80.0230.00517.24
8.1.70.0250.00516.98
8.1.60.0270.00217.31
8.1.50.0230.00417.31
8.1.40.0210.00717.44
8.1.30.0220.00717.29
8.1.20.0270.00017.50
8.1.10.0200.00817.36
8.1.00.0240.00517.17
8.0.300.0260.00416.81
8.0.290.0240.00416.43
8.0.280.0220.00516.69
8.0.270.0230.00616.63
8.0.260.0220.00616.74
8.0.250.0240.00516.62
8.0.240.0250.00316.94
8.0.230.0250.00416.81
8.0.220.0300.00216.69
8.0.210.0210.00816.37
8.0.200.0210.00916.68
8.0.190.0220.00716.67
8.0.180.0230.00516.74
8.0.170.0240.00416.74
8.0.160.0200.01016.75
8.0.150.0230.00716.56
8.0.140.0260.00316.80
8.0.130.0220.00816.65
8.0.120.0220.00616.68
8.0.110.0220.00716.68
8.0.100.0240.00316.94
8.0.90.0230.00516.81
8.0.80.0240.00316.67
8.0.70.0250.00416.75
8.0.60.0230.00516.69
8.0.50.0220.00616.71
8.0.30.0210.00616.81
8.0.20.0160.01216.75
8.0.10.0230.00516.67

preferences:
19.51 ms | 401 KiB | 5 Q