3v4l.org

run code in 200+ PHP versions simultaneously
<?php $profile = '<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div> <p>イリノイ州シカゴにて、アイルランド系の家庭に、9</p> </div> <div>lol</div> </body> </html> '; $dom = new DOMDocument('1.0', 'UTF-8'); $dom->loadHTML($profile); $collect = ""; foreach($dom->getElementsByTagName('body')->item(0)->childNodes as $childNode){ $collect .= $dom->saveHTML($childNode); } echo $collect;
based on tbgpV

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)
7.4.00.0110.00514.87
7.3.120.0060.01214.66
7.3.110.0100.00614.91
7.3.100.0040.01214.90
7.3.90.0070.00714.70
7.3.80.0060.00315.06
7.3.70.0120.00314.95
7.3.60.0030.00914.99
7.3.50.0040.00715.01
7.3.40.0120.00414.94
7.3.30.0070.00714.77
7.3.20.0090.00316.88
7.3.10.0040.00816.80
7.3.00.0030.00616.95
7.2.250.0060.00915.06
7.2.240.0070.01114.96
7.2.230.0110.00415.28
7.2.220.0030.01315.28
7.2.210.0040.01115.32
7.2.200.0130.00315.09
7.2.190.0000.01515.25
7.2.180.0100.00315.16
7.2.170.0000.01115.07
7.2.60.0090.00616.92
7.2.00.0120.00319.64
7.1.330.0070.00716.10
7.1.320.0060.01015.85
7.1.310.0130.00315.73
7.1.300.0080.00315.96
7.1.290.0060.00615.54
7.1.280.0000.00915.77
7.1.270.0070.00715.80
7.1.260.0030.00615.77
7.1.200.0060.00915.89
7.1.70.0070.00017.09
7.1.60.0090.00319.75
7.1.00.0000.08322.56
7.0.200.0060.00316.61
7.0.90.0700.00020.16
7.0.80.0870.00020.17
7.0.70.0670.00020.00
7.0.60.1030.00020.02
7.0.50.0670.00020.34
7.0.40.0670.00020.48
7.0.30.0700.00020.49
7.0.20.0770.00020.41
7.0.10.0700.00020.32
7.0.00.0700.00020.36
5.6.240.0700.00020.79
5.6.230.0870.00020.74
5.6.220.0870.00020.59
5.6.210.0900.00020.61
5.6.200.0670.00021.24
5.6.190.0670.00021.09
5.6.180.0930.00021.11
5.6.170.0900.00021.11
5.6.160.0700.00021.12
5.6.150.0830.00021.13
5.6.140.0700.00021.21
5.6.130.0970.00021.21
5.6.120.0730.00021.21
5.6.110.0700.00021.14
5.6.100.0670.00021.21
5.6.90.0830.00021.09
5.6.80.0830.00020.60
5.6.70.0870.00020.50
5.6.60.0670.00020.53
5.6.50.0700.00020.50
5.6.40.0670.00020.55
5.6.30.0670.00020.50
5.6.20.0830.00020.46
5.6.10.0630.00020.49
5.6.00.0730.00020.53