3v4l.org

run code in 300+ PHP versions simultaneously
<?php $document = <<<EOD <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head> <body> < </body> </html> EOD; $dom = new \DOMDocument(); $dom->loadHTML($document, LIBXML_NOBLANKS); echo $dom->textContent . PHP_EOL; echo LIBXML_DOTTED_VERSION;

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.4.130.0130.00617.98
8.4.120.0100.00919.70
8.4.110.0120.00918.42
8.4.100.0120.00817.91
8.4.90.0090.00520.62
8.4.80.0090.01118.89
8.4.70.0150.00619.40
8.4.60.0120.00820.78
8.4.50.0060.01218.87
8.4.40.0070.01317.95
8.4.30.0130.00621.06
8.4.20.0120.00918.07
8.4.10.0000.01221.72
8.3.260.0080.01117.04
8.3.250.0110.00719.02
8.3.240.0110.00516.91
8.3.230.0160.00416.85
8.3.220.0040.00419.25
8.3.210.0100.00716.86
8.3.200.0050.00316.90
8.3.190.0100.00917.24
8.3.180.0070.01317.04
8.3.170.0040.01017.39
8.3.160.0120.00616.90
8.3.150.0110.00718.95
8.3.140.0030.00717.23
8.3.130.0060.00316.85
8.3.120.0040.01219.39
8.3.110.0060.00920.94
8.3.100.0080.00024.06
8.3.90.0040.00426.77
8.3.80.0080.00318.55
8.3.70.0060.01216.88
8.3.60.0070.01417.00
8.3.50.0130.00718.67
8.3.40.0100.01021.96
8.3.30.0030.01219.26
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0120.00816.91
8.2.280.0100.00918.74
8.2.270.0150.00317.24
8.2.260.0050.00317.17
8.2.250.0080.00016.78
8.2.240.0000.00817.59
8.2.230.0040.00422.58
8.2.220.0090.00637.54
8.2.210.0110.00426.77
8.2.200.0060.00316.63
8.2.190.0120.00316.88
8.2.180.0070.01416.75
8.2.170.0150.00622.96
8.2.160.0030.01422.96
8.2.150.0050.00225.66
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00419.79
8.2.110.0050.00519.39
8.2.100.0070.00418.03
8.2.90.0250.00017.72
8.2.80.0220.00817.75
8.2.70.0280.00317.50
8.2.60.0230.00717.74
8.2.50.0200.01017.25
8.2.40.0210.00417.75
8.2.30.0240.00217.88
8.2.20.0050.00917.63
8.2.10.0270.00317.50
8.2.00.0260.00217.50
8.1.330.0110.00816.66
8.1.320.0100.01016.24
8.1.310.0040.00416.99
8.1.300.0000.01518.16
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.71
8.1.230.0200.00717.48
8.1.220.0250.00317.38
8.1.210.0220.00617.36
8.1.200.0210.00717.36
8.1.190.0170.01117.13
8.1.180.0160.01217.38
8.1.170.0200.00817.38
8.1.160.0190.00817.13
8.1.150.0270.00317.49
8.1.140.0270.00017.13
8.1.130.0280.00217.36
8.1.120.0240.00619.38
8.1.110.0210.00517.25
8.1.100.0240.00317.38
8.1.90.0250.00317.50
8.1.80.0190.00817.50
8.1.70.0220.00617.25
8.1.60.0220.00417.72
8.1.50.0190.00817.50
8.1.40.0180.00917.50
8.1.30.0240.00317.38
8.1.20.0220.00617.50
8.1.10.0190.00717.48
8.1.00.0220.00717.63
8.0.300.0060.00617.10
8.0.290.0190.00717.10
8.0.280.0250.00317.10
8.0.270.0260.00017.10
8.0.260.0240.00317.10
8.0.250.0140.01417.10
8.0.240.0230.00417.10
8.0.230.0280.00017.10
8.0.220.0220.00617.13
8.0.210.0310.00017.10
8.0.200.0200.00717.10
8.0.190.0220.00417.13
8.0.180.0160.01217.10
8.0.170.0280.00017.10
8.0.160.0080.00817.10
8.0.150.0110.00617.10
8.0.140.0100.00717.10
8.0.130.0180.00717.10
8.0.120.0220.00517.10
8.0.110.0240.00517.10
8.0.100.0250.00817.10
8.0.90.0270.00017.10
8.0.80.0270.00317.10
8.0.70.0210.00717.10
8.0.60.0200.00917.10
8.0.50.0050.00917.10
8.0.30.0030.01017.10
8.0.20.0030.00917.10
8.0.10.0090.00317.10

preferences:
27.37 ms | 403 KiB | 5 Q