3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test extends DOMElement { public function __destruct() { var_dump(1); } } $dom = new DOMDocument; $dom->loadXML('<p>hi</p>'); $dom->firstChild->appendChild(new Test('a')); var_dump(2); var_dump($dom->saveHTML()); var_dump($dom->firstChild->firstChild->nextSibling);

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.0130.00720.79
8.4.110.0090.01120.54
8.4.100.0160.00618.10
8.4.90.0100.00818.25
8.4.80.0060.00318.13
8.4.70.0130.00417.79
8.4.60.0140.00717.72
8.4.50.0100.01117.72
8.4.40.0170.00320.87
8.4.30.0200.00022.29
8.4.20.0100.01017.88
8.4.10.0060.00622.44
8.3.250.0080.00819.12
8.3.240.0130.00616.99
8.3.230.0130.00716.70
8.3.220.0090.01119.26
8.3.210.0100.00916.70
8.3.200.0120.01016.79
8.3.190.0070.00116.87
8.3.180.0090.01116.88
8.3.170.0150.00318.94
8.3.160.0070.01118.75
8.3.150.0030.01417.45
8.3.140.0120.00920.80
8.3.130.0150.00418.84
8.3.120.0100.01020.84
8.3.110.0120.00020.94
8.3.100.0070.01024.06
8.3.90.0190.00026.77
8.3.80.0000.01018.80
8.3.70.0090.00618.55
8.3.60.0100.00617.00
8.3.50.0120.00616.97
8.3.40.0140.00320.67
8.3.30.0110.00420.98
8.3.20.0030.00624.18
8.3.10.0030.00524.66
8.3.00.0000.00826.16
8.2.290.0140.00220.56
8.2.280.0070.00816.98
8.2.270.0050.00317.49
8.2.260.0100.00718.38
8.2.250.0080.00017.06
8.2.240.0030.00719.42
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0000.00826.77
8.2.200.0030.00716.75
8.2.190.0180.00017.13
8.2.180.0040.01116.88
8.2.170.0000.01618.91
8.2.160.0120.00922.96
8.2.150.0030.00625.66
8.2.140.0000.00924.66
8.2.130.0000.00826.16
8.2.120.0080.00019.48
8.2.110.0060.00321.25
8.2.100.0060.00617.97
8.2.90.0030.00618.03
8.2.80.0080.00022.52
8.2.70.0030.00617.63
8.2.60.0130.00517.63
8.2.50.0180.00017.50
8.2.40.0170.00017.63
8.2.30.0120.00517.75
8.2.20.0080.01117.73
8.2.10.0090.00917.63
8.2.00.0110.00617.50
8.1.330.0100.00917.12
8.1.320.0080.01217.89
8.1.310.0040.00417.19
8.1.300.0060.00320.11
8.1.290.0070.00330.84
8.1.280.0060.00925.92
8.1.270.0050.00324.66
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00622.31
8.1.230.0080.00322.38
8.1.220.0000.00817.79
8.1.210.0000.00818.89
8.1.200.0060.00317.47
8.1.190.0170.00017.38
8.1.180.0180.00017.25
8.1.170.0060.01217.63
8.1.160.0150.00317.50
8.1.150.0170.00017.38
8.1.140.0000.00917.60
8.1.130.0120.00817.25
8.1.120.0040.01217.25
8.1.110.0130.00317.25
8.1.100.0060.01117.25
8.1.90.0130.00317.25
8.1.80.0160.00317.50
8.1.70.0080.00817.38
8.1.60.0000.01817.38
8.1.50.0140.00317.47
8.1.40.0110.00817.63
8.1.30.0110.00817.36
8.1.20.0130.00517.75
8.1.10.0070.01117.25
8.1.00.0140.00517.25
8.0.300.0000.00720.15
8.0.290.0030.00617.00
8.0.280.0160.00016.52
8.0.270.0170.00016.72
8.0.260.0120.00516.63
8.0.250.0120.00416.88
8.0.240.0090.00716.75
8.0.230.0090.00716.61
8.0.220.0110.00716.52
8.0.210.0130.00316.71
8.0.200.0140.00416.52
8.0.190.0150.00416.72
8.0.180.0150.00516.52
8.0.170.0080.00816.75
8.0.160.0070.01116.87
8.0.150.0140.00316.75
8.0.140.0140.00216.52
8.0.130.0160.00016.60
8.0.120.0110.00716.63
8.0.110.0110.00516.71
8.0.100.0080.00816.52
8.0.90.0110.00516.52
8.0.80.0080.01116.63
8.0.70.0120.00616.52
8.0.60.0080.00617.05
8.0.50.0070.01116.52
8.0.30.0160.00016.88
8.0.20.0140.00216.61
8.0.10.0110.00616.71

preferences:
60.51 ms | 403 KiB | 5 Q