3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument(); $f = $doc->createDocumentFragment(); $f->appendXML('<h1>Foo</h1><h2>Bar</h2><p>lorem ipsum</p>'); $nodes = $f->getElementsByTagName('*'); echo $nodes->item(0)->tagName . ' -> ' . $nodes->item(0)->nodeValue . '<br/>'; foreach ($nodes as $node) { echo $node->tagName . ' -> ' . $node->nodeValue . '<br/>'; }

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.0090.00617.13
8.3.50.0130.00522.05
8.3.40.0110.00419.09
8.3.30.0140.00018.85
8.3.20.0040.00420.18
8.3.10.0040.00423.92
8.3.00.0080.00019.63
8.2.180.0090.00918.45
8.2.170.0140.01022.96
8.2.160.0070.00722.39
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0060.00317.63
8.2.120.0070.00026.35
8.2.110.0100.00020.79
8.2.100.0040.00818.15
8.2.90.0040.00419.30
8.2.80.0030.00617.97
8.2.70.0090.00017.74
8.2.60.0000.00818.16
8.2.50.0080.00018.07
8.2.40.0050.00519.64
8.2.30.0070.00020.77
8.2.20.0000.01017.78
8.2.10.0050.00318.34
8.2.00.0040.00418.30
8.1.280.0140.00425.92
8.1.270.0030.00624.09
8.1.260.0080.00028.09
8.1.250.0110.00428.09
8.1.240.0060.00324.10
8.1.230.0090.00317.77
8.1.220.0040.00417.93
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0050.00317.48
8.1.180.0030.00618.10
8.1.170.0050.00318.96
8.1.160.0070.00022.09
8.1.150.0000.00819.00
8.1.140.0040.00419.76
8.1.130.0030.00317.87
8.1.120.0000.00717.48
8.1.110.0000.00717.61
8.1.100.0040.00417.67
8.1.90.0000.00717.55
8.1.80.0040.00417.51
8.1.70.0000.00717.59
8.1.60.0080.00017.83
8.1.50.0090.00017.74
8.1.40.0040.00417.78
8.1.30.0040.00417.73
8.1.20.0000.00917.78
8.1.10.0040.00417.77
8.1.00.0080.00017.84
8.0.300.0000.00818.77
8.0.290.0040.00417.00
8.0.280.0000.00718.61
8.0.270.0000.00717.40
8.0.260.0020.00417.47
8.0.250.0040.00417.22
8.0.240.0030.00317.18
8.0.230.0040.00417.14
8.0.220.0070.00017.12
8.0.210.0070.00017.06
8.0.200.0000.00617.18
8.0.190.0000.00717.14
8.0.180.0000.00717.11
8.0.170.0000.00817.05
8.0.160.0070.00017.16
8.0.150.0070.00017.10
8.0.140.0050.00517.11
8.0.130.0060.00013.56
8.0.120.0040.00417.13
8.0.110.0040.00417.04
8.0.100.0040.00416.98
8.0.90.0000.00716.96
8.0.80.0140.00317.03
8.0.70.0000.00716.99
8.0.60.0070.00016.97
8.0.50.0070.00017.02
8.0.30.0110.00717.09
8.0.20.0090.01017.42
8.0.10.0050.00317.15
8.0.00.0080.00917.13
7.4.330.0050.00016.87
7.4.320.0000.00716.74
7.4.300.0000.00716.83
7.4.290.0070.00016.82
7.4.280.0000.00916.71
7.4.270.0030.00316.78
7.4.260.0000.00716.75
7.4.250.0050.00316.84
7.4.240.0020.00516.69
7.4.230.0000.00716.94
7.4.220.0060.01216.73
7.4.210.0060.00916.66
7.4.200.0070.00016.77
7.4.160.0040.01116.87
7.4.150.0080.01117.40
7.4.140.0070.01417.86
7.4.130.0210.00416.78
7.4.120.0120.00516.83
7.4.110.0110.01116.80
7.4.100.0090.00916.82
7.4.90.0150.00316.71
7.4.80.0060.01119.39
7.4.70.0060.01316.70
7.4.60.0030.01216.80
7.4.50.0110.00416.86
7.4.40.0130.00316.74
7.4.30.0090.01216.63
7.4.00.0130.00015.04
7.3.330.0050.00013.28
7.3.320.0050.00013.27
7.3.310.0030.00316.54
7.3.300.0030.00316.38
7.3.290.0070.01116.47
7.3.280.0090.01116.46
7.3.270.0060.01217.40
7.3.260.0070.01016.70
7.3.240.0090.00916.40
7.3.230.0070.01016.48
7.3.210.0110.00916.33
7.3.200.0090.00616.78
7.3.190.0060.00916.50
7.3.180.0030.01316.63
7.3.170.0180.00316.64
7.3.160.0090.00816.48
7.2.330.0170.00016.70
7.2.320.0130.01016.83
7.2.310.0120.00316.64
7.2.300.0070.01016.71
7.2.290.0100.01016.57
7.2.60.0090.00616.83
7.2.00.0000.01019.22
7.1.200.0110.00015.65
7.1.100.0030.01018.01
7.1.70.0000.00716.98
7.1.60.0140.00719.48
7.1.50.0130.00916.53
7.1.00.0070.07322.54
7.0.200.0340.00614.43
7.0.60.0100.06020.11
7.0.50.0070.08017.80
7.0.40.0070.07020.05
7.0.30.0370.06720.30
7.0.20.0400.06720.14
7.0.10.0100.03720.11
7.0.00.0100.05720.25
5.6.280.0030.04720.89
5.6.210.0070.07720.91
5.6.200.0030.06018.24
5.6.190.0030.05020.46
5.6.180.0430.07320.81
5.6.170.0270.08720.48
5.6.160.0000.09020.47
5.6.150.0070.03718.25
5.6.140.0070.03718.25
5.6.130.0130.07318.28
5.6.120.0030.04321.09
5.6.110.0200.06721.02
5.6.100.0100.07720.98
5.6.90.0030.08321.15
5.6.80.0100.07720.57
5.5.350.3170.03320.45
5.5.340.0130.04018.06
5.5.330.0170.07320.61
5.5.320.0430.06720.46
5.5.310.0070.05020.57
5.5.300.0070.06718.10
5.5.290.0130.07718.11
5.5.280.0070.04021.02
5.5.270.0070.06720.77
5.5.260.0030.08720.96
5.5.250.0030.09020.65
5.5.240.0230.07020.29

preferences:
80.98 ms | 401 KiB | 5 Q