3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<'HTML' <p>mon texte de début</p> <pre> <?php # Pour afficher un tableau PHP $var['website'] = 'domain.tld'; $var['weblink'] = 'http://www.domain.tld'; # BUG ICI echo '<pre>'.print_r($var,1).'</pre>' echo 'My domain : '.$var['website'] ?> </pre> <p>mon texte de fin.</p> HTML; libxml_use_internal_errors(true); $dom = new DOMDocument; $dom->loadHTML('<html><head><meta charset="UTF-8"/></head><body>' . $text . '</body></html>'); foreach($dom->getElementsByTagName('body')->item(0)->childNodes as $childNode) { echo $dom->saveHTML($childNode); }

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.0120.00824.18
8.4.110.0120.00919.30
8.4.100.0050.00419.26
8.4.90.0060.00320.82
8.4.80.0100.01020.69
8.4.70.0110.00917.96
8.4.60.0100.01117.61
8.4.50.0110.01219.57
8.4.40.0160.00317.95
8.4.30.0130.00620.88
8.4.20.0090.00919.82
8.4.10.0100.00022.25
8.3.250.0080.01219.26
8.3.240.0120.00817.41
8.3.230.0130.00716.97
8.3.220.0100.00919.06
8.3.210.0050.00316.93
8.3.200.0110.00816.75
8.3.190.0120.00718.79
8.3.180.0100.01016.71
8.3.170.0070.00317.41
8.3.160.0120.00619.30
8.3.150.0190.00017.56
8.3.140.0060.00916.70
8.3.130.0060.00316.98
8.3.120.0000.00819.21
8.3.110.0100.01020.94
8.3.100.0080.00016.59
8.3.90.0040.00426.77
8.3.80.0090.00317.00
8.3.70.0140.00417.00
8.3.60.0040.01118.56
8.3.50.0000.01520.22
8.3.40.0060.00920.41
8.3.30.0090.00618.91
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0130.00620.35
8.2.280.0070.00616.82
8.2.270.0150.00317.16
8.2.260.0090.00020.27
8.2.250.0090.00616.71
8.2.240.0080.00018.51
8.2.230.0040.00422.58
8.2.220.0030.00724.06
8.2.210.0030.00526.77
8.2.200.0030.00618.66
8.2.190.0070.01417.00
8.2.180.0070.00725.92
8.2.170.0180.00319.01
8.2.160.0140.00022.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0000.00926.16
8.2.120.0040.01420.87
8.2.110.0000.01120.59
8.2.100.0070.00320.71
8.1.330.0130.00622.21
8.1.320.0060.01216.67
8.1.310.0040.00416.82
8.1.300.0080.00416.28
8.1.290.0030.00630.84
8.1.280.0060.01225.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00618.74
8.1.230.0030.00618.56
8.1.110.0020.00517.71

preferences:
28.61 ms | 403 KiB | 5 Q