3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<p>àâäçß</p>'; $wrapper = '<html><head><meta charset="unicode-1-1-utf-8" /></head><body>%s</body></html>'; $dom = new DOMDocument; $dom->loadHTML(sprintf($wrapper, $html), \LIBXML_NOWARNING); $result = ''; $childNodes = $dom->getElementsByTagName('body')->item(0)->childNodes; foreach ( $childNodes as $childNode ) { $result .= $dom->saveHTML($childNode); } echo $result;

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.120.0100.01124.75
8.4.110.0120.00819.91
8.4.100.0120.00819.68
8.4.90.0090.01021.35
8.4.80.0130.00619.71
8.4.70.0100.00818.71
8.4.60.0110.01121.04
8.4.50.0110.01019.99
8.4.40.0100.00720.05
8.4.30.0090.00620.88
8.4.20.0150.00618.69
8.4.10.0100.01020.50
8.3.250.0120.00817.25
8.3.240.0050.00517.71
8.3.230.0120.00417.21
8.3.220.0120.00419.84
8.3.210.0140.00617.22
8.3.200.0030.00617.31
8.3.190.0040.00519.42
8.3.180.0100.00617.41
8.3.170.0090.00917.22
8.3.160.0070.01117.39
8.3.150.0080.01117.97
8.3.140.0060.01319.60
8.3.130.0070.01018.98
8.3.120.0100.00019.89
8.3.110.0000.00820.94
8.3.100.0000.01024.06
8.3.90.0080.00026.77
8.3.80.0060.00317.50
8.3.70.0130.01017.38
8.3.60.0070.00717.25
8.3.50.0070.01520.81
8.3.40.0040.01119.78
8.3.30.0120.00319.70
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0130.00721.09
8.2.280.0090.01021.09
8.2.270.0120.00317.58
8.2.260.0040.01419.81
8.2.250.0040.00417.50
8.2.240.0040.01219.80
8.2.230.0060.00322.58
8.2.220.0100.00637.54
8.2.210.0060.00326.77
8.2.200.0110.00017.50
8.2.190.0080.01117.13
8.2.180.0060.00925.92
8.2.170.0120.00319.70
8.2.160.0160.00022.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0030.00526.16
8.2.110.0030.00721.69
8.2.100.0060.00618.66
8.2.90.0040.00418.66
8.2.80.0050.00518.79
8.2.70.0050.00518.25
8.2.60.0090.00018.78
8.2.50.0050.00518.38
8.2.40.0060.00318.91
8.2.30.0070.00418.79
8.2.20.0040.00421.19
8.2.10.0000.00818.44
8.2.00.0040.00419.93
8.1.330.0120.00722.54
8.1.320.0170.00316.74
8.1.310.0000.01817.71
8.1.300.0120.00820.38
8.1.290.0100.00018.92
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0090.00326.35
8.1.250.0060.00328.09
8.1.240.0100.00022.81
8.1.230.0060.00718.45
8.1.220.0000.00818.52
8.1.210.0000.01019.47
8.1.200.0090.00318.10
8.1.190.0030.00817.98
8.1.180.0030.00618.10
8.1.170.0030.00719.28
8.1.160.0070.00219.68
8.1.150.0030.00619.34
8.1.140.0040.00418.09
8.1.130.0030.00319.54
8.1.120.0000.00718.23
8.1.110.0000.00718.22
8.1.100.0040.00418.22
8.1.90.0020.00518.18
8.1.80.0050.00318.21
8.1.70.0000.00718.23
8.1.60.0000.00818.36
8.1.50.0060.00318.30
8.1.40.0000.00918.23
8.1.30.0090.00318.27
8.1.20.0190.00318.37
8.1.10.0170.00318.18
8.1.00.0120.00018.23
8.0.300.0060.00320.64
8.0.290.0120.00017.25
8.0.280.0060.00620.85
8.0.270.0070.00218.61
8.0.260.0030.00319.12
8.0.250.0000.00817.72
8.0.240.0060.00317.64
8.0.230.0090.00017.65
8.0.220.0070.00017.64
8.0.210.0030.00317.75
8.0.200.0040.00417.67
8.0.190.0030.00617.72
8.0.180.0040.00417.68
8.0.170.0060.00317.54
8.0.160.0080.00317.62
8.0.150.0000.01317.55
8.0.140.0100.00317.62
8.0.130.0080.00817.54
8.0.120.0140.00317.73
8.0.110.0110.00717.56
8.0.100.0170.00317.53
8.0.90.0140.00717.53
8.0.80.0170.00217.62
8.0.70.0140.00617.71
8.0.60.0150.00317.46
8.0.50.0140.00517.75
8.0.30.0200.00017.48
8.0.20.0130.00717.52
8.0.10.0110.00817.68
7.4.330.0070.00015.55
7.4.320.0060.00017.26
7.4.300.0000.00717.39
7.4.290.0040.00417.13
7.4.280.0030.00317.14
7.4.270.0110.01117.15
7.4.260.0170.00617.41
7.4.250.0160.00517.36
7.4.240.0180.00517.20
7.4.230.0160.00717.07
7.4.220.0150.00417.26
7.4.210.0190.00017.45
7.4.200.0050.01517.46
7.4.190.0150.00617.38
7.4.180.0080.01217.28
7.4.160.0170.00317.14
7.4.150.0160.00317.12
7.4.140.0000.01117.18
7.4.130.0000.01017.23
7.4.120.0110.00617.23
7.4.110.0120.00917.09
7.4.100.0170.00317.29
7.4.90.0160.00017.24
7.4.80.0130.00417.10
7.4.70.0110.00617.05
7.4.60.0050.01117.18
7.4.50.0090.00416.94
7.4.40.0130.00517.00
7.4.30.0090.00416.99
7.4.20.0060.00417.25
7.4.10.0090.00517.10
7.4.00.0070.00417.08
5.6.400.0120.00416.80

preferences:
27.46 ms | 403 KiB | 5 Q