3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <p>test</p> </body> </html>'; echo LIBXML_DOTTED_VERSION . PHP_EOL . PHP_EOL; $dom = new DOMDocument(); $dom->formatOutput = false; $dom->loadHTML($html); echo $dom->saveHTML($dom->documentElement) . PHP_EOL . PHP_EOL; echo $dom->saveHTML() . PHP_EOL . PHP_EOL; $dom = new DOMDocument(); $dom->formatOutput = false; $dom->loadHTML($html, LIBXML_PARSEHUGE); echo $dom->saveHTML($dom->documentElement) . PHP_EOL . PHP_EOL; echo $dom->saveHTML() . PHP_EOL . PHP_EOL;

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.60.0110.00418.68
8.3.50.0040.01218.65
8.3.40.0060.00919.08
8.3.30.0070.01019.04
8.3.20.0080.00021.21
8.3.10.0040.00420.37
8.3.00.0030.00620.77
8.2.180.0150.00617.00
8.2.170.0060.00922.96
8.2.160.0140.00022.37
8.2.150.0000.00824.18
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00421.46
8.2.110.0090.00620.60
8.2.100.0060.00618.03
8.2.90.0060.00318.16
8.2.80.0050.00519.21
8.2.70.0060.00317.63
8.2.60.0030.00518.00
8.2.50.0030.00518.10
8.2.40.0050.00319.58
8.2.30.0040.00419.39
8.2.20.0000.00818.21
8.2.10.0070.00019.17
8.2.00.0040.00419.45
8.1.280.0190.00325.92
8.1.270.0080.00020.80
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01122.20
8.1.230.0110.00021.28
8.1.220.0030.00517.91
8.1.210.0040.00418.77
8.1.200.0000.00917.75
8.1.190.0080.00017.47
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0000.00719.18
8.1.150.0040.00419.17
8.1.140.0040.00420.86
8.1.130.0000.00820.27
8.1.120.0080.00017.71
8.1.110.0040.00417.65
8.1.100.0000.00717.63
8.1.90.0070.00017.70
8.1.80.0030.00617.64
8.1.70.0000.00717.70
8.1.60.0050.00517.81
8.1.50.0030.00517.77
8.1.40.0030.00617.72
8.1.30.0000.00917.81
8.1.20.0040.00417.83
8.1.10.0000.01017.71
8.1.00.0040.00417.70
8.0.300.0040.00418.96
8.0.290.0000.00717.13
8.0.280.0030.00618.60
8.0.270.0000.00717.41
8.0.260.0000.00820.36
8.0.250.0080.00017.18
8.0.240.0070.00017.19
8.0.230.0000.00717.07
8.0.220.0050.00217.18
8.0.210.0030.00317.18
8.0.200.0000.00717.11
8.0.190.0040.00417.10
8.0.180.0030.00617.11
8.0.170.0040.00417.12
8.0.160.0050.00217.20
8.0.150.0040.00417.02
8.0.140.0080.00017.05
8.0.130.0000.00513.56
8.0.120.0040.00417.13
8.0.110.0000.00816.93
8.0.100.0000.00817.04
8.0.90.0090.00017.12
8.0.80.0040.01117.19
8.0.70.0050.00317.25
8.0.60.0040.00416.83
8.0.50.0090.00017.05
8.0.30.0110.00617.26
8.0.20.0140.00417.38
8.0.10.0000.00717.13
8.0.00.0150.00917.06
7.4.330.0050.00015.55
7.4.320.0000.00716.75
7.4.300.0000.00616.91
7.4.290.0040.00416.71
7.4.280.0000.01016.84
7.4.270.0000.00816.63
7.4.260.0030.00313.50
7.4.250.0000.00816.68
7.4.240.0040.00516.76
7.4.230.0040.00416.83
7.4.220.0020.00516.90
7.4.210.0060.01016.72
7.4.200.0030.00516.66
7.4.130.0190.00616.89
7.4.120.0110.00716.74
7.4.110.0130.00316.59
7.4.100.0200.00416.55
7.4.90.0120.00616.71
7.4.80.0130.00419.39
7.4.70.0090.00816.67
7.4.60.0030.01316.50
7.4.50.0060.00916.70
7.4.40.0070.02016.85
7.4.00.0060.00914.77
7.3.330.0070.00016.50
7.3.320.0060.00013.36
7.3.310.0030.00316.51
7.3.300.0000.00716.37
7.3.290.0070.00016.52
7.3.280.0090.00616.50
7.3.260.0110.01216.75
7.3.240.0100.00716.66
7.3.230.0130.01016.78
7.3.210.0110.00616.46
7.3.200.0130.00316.70
7.3.190.0060.01216.56
7.3.180.0090.00616.52
7.3.170.0090.00916.67
7.3.160.0080.00816.98
7.3.120.0150.00614.61
7.3.110.0090.00614.81
7.3.100.0050.01014.61
7.3.90.0040.01114.93
7.3.80.0030.01214.79
7.3.70.0000.01514.80
7.3.60.0060.01314.68
7.3.50.0090.00614.98
7.3.40.0140.00014.65
7.3.30.0130.00714.80
7.3.20.0080.01314.95
7.3.10.0080.01214.95
7.3.00.0040.01515.04
7.2.330.0090.00916.66
7.2.320.0120.01217.04
7.2.310.0050.01317.03
7.2.300.0070.01116.81
7.2.290.0000.01716.95
7.2.250.0160.00514.90
7.2.240.0110.00815.24
7.2.230.0100.00515.09
7.2.220.0120.00314.94
7.2.210.0060.01115.18
7.2.200.0080.00615.00
7.2.190.0100.00715.25
7.2.180.0140.00415.10
7.2.170.0040.01115.08
7.2.160.0060.01415.07
7.2.150.0090.00914.92
7.2.140.0080.00814.97
7.2.130.0130.00715.12
7.2.120.0110.00714.88
7.2.110.0110.00914.90
7.2.100.0100.01015.20
7.2.90.0090.00915.11
7.2.80.0120.00615.07
7.2.70.0110.00415.17
7.2.60.0050.01014.98
7.2.50.0040.01115.15
7.2.40.0060.00915.17
7.2.30.0030.01615.07
7.2.20.0200.01015.11
7.2.10.0120.00414.82
7.2.00.0090.00615.16
7.1.330.0090.00913.86
7.1.320.0100.00313.93
7.1.310.0030.01113.91
7.1.300.0090.00814.00
7.1.290.0110.00813.65
7.1.280.0130.00214.02
7.1.270.0040.01613.85
7.1.260.0110.00814.15
7.1.250.0040.01413.80

preferences:
58.12 ms | 400 KiB | 5 Q