3v4l.org

run code in 300+ PHP versions simultaneously
<?php $root = new DOMDocument(); $root->loadXML('<article id=""><h1></h1><p></p></article>'); $node = new DOMDocument(); $node->loadXML('<section><h1></h1><p></p></section>'); $node = $root->importNode($node->documentElement, true); $root->documentElement->appendChild($node); print $root->saveXML();

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.0160.00316.60
8.3.50.0080.01116.40
8.3.40.0110.00718.84
8.3.30.0060.00918.96
8.3.20.0050.00320.59
8.3.10.0040.00423.86
8.3.00.0040.00421.12
8.2.180.0090.00918.55
8.2.170.0000.01422.96
8.2.160.0100.00722.33
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00322.26
8.2.120.0040.00426.35
8.2.110.0030.00720.77
8.2.100.0030.00917.84
8.2.90.0000.00819.35
8.2.80.0050.00318.18
8.2.70.0080.00017.75
8.2.60.0000.00818.05
8.2.50.0050.00318.18
8.2.40.0050.00322.64
8.2.30.0040.00421.23
8.2.20.0040.00418.43
8.2.10.0050.00318.31
8.2.00.0040.00418.39
8.1.270.0080.00022.35
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00022.91
8.1.230.0090.00319.39
8.1.220.0000.00817.91
8.1.210.0000.00818.77
8.1.200.0000.01117.63
8.1.190.0060.00317.48
8.1.180.0000.00718.10
8.1.170.0050.00318.79
8.1.160.0000.00719.27
8.1.150.0000.00920.95
8.1.140.0030.00619.73
8.1.130.0040.00419.11
8.1.120.0000.00717.58
8.1.110.0040.00417.64
8.1.100.0000.00717.76
8.1.90.0080.00017.78
8.1.80.0000.00717.55
8.1.70.0030.00317.67
8.1.60.0040.00417.84
8.1.50.0080.00017.79
8.1.40.0030.00617.76
8.1.30.0000.00817.89
8.1.20.0000.00917.94
8.1.10.0000.00817.74
8.1.00.0000.00817.77
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0080.00018.70
8.0.270.0030.00317.58
8.0.260.0000.00717.08
8.0.250.0000.00717.16
8.0.240.0040.00417.20
8.0.230.0000.00717.18
8.0.220.0030.00316.95
8.0.210.0050.00316.96
8.0.200.0040.00417.01
8.0.190.0040.00817.18
8.0.180.0040.00417.21
8.0.170.0030.00317.16
8.0.160.0050.00317.11
8.0.150.0030.00617.11
8.0.140.0020.00517.07
8.0.130.0030.00313.48
8.0.120.0040.00417.09
8.0.110.0040.00417.14
8.0.100.0040.00417.14
8.0.90.0040.00417.03
8.0.80.0180.00917.08
8.0.70.0050.00216.97
8.0.60.0070.00017.03
8.0.50.0040.00416.96
8.0.30.0090.00817.26
8.0.20.0110.01317.40
8.0.10.0080.00017.30
8.0.00.0110.00716.81
7.4.330.0020.00215.55
7.4.320.0060.00016.68
7.4.300.0000.00816.66
7.4.290.0030.00316.86
7.4.280.0060.00316.65
7.4.270.0030.00316.90
7.4.260.0030.00313.52
7.4.250.0000.00716.84
7.4.240.0000.00716.85
7.4.230.0000.00716.85
7.4.220.0150.00416.92
7.4.210.0070.01416.76
7.4.200.0030.00316.85
7.4.160.0060.01016.76
7.4.150.0100.00717.40
7.4.140.0130.00917.86
7.4.130.0060.01216.64
7.4.120.0130.00616.79
7.4.110.0120.00616.77
7.4.100.0030.01516.62
7.4.90.0120.00616.76
7.4.80.0120.00919.39
7.4.70.0120.00916.84
7.4.60.0120.00916.75
7.4.50.0060.01216.69
7.4.40.0060.00916.92
7.4.30.0100.00716.75
7.4.00.0030.01015.27
7.3.330.0030.00313.18
7.3.320.0050.00013.34
7.3.310.0000.00816.55
7.3.300.0060.00016.53
7.3.290.0100.00616.38
7.3.280.0090.00616.44
7.3.270.0110.00717.40
7.3.260.0060.01116.55
7.3.250.0110.00716.53
7.3.240.0080.01016.67
7.3.230.0080.00816.59
7.3.210.0060.01216.72
7.3.200.0070.01016.66
7.3.190.0130.00816.61
7.3.180.0070.01416.79
7.3.170.0120.01216.57
7.3.160.0100.00616.68
7.2.330.0060.01316.61
7.2.320.0070.01416.63
7.2.310.0070.01017.02
7.2.300.0030.01316.57
7.2.290.0110.00816.57
7.2.60.0270.00216.41
7.2.00.0000.01019.43
7.1.200.0190.00615.90
7.1.100.0080.00318.11
7.1.70.0060.00317.22
7.1.60.0500.01033.46
7.1.50.0730.00333.19
7.1.40.0470.01032.71
7.1.30.0530.01032.59
7.1.20.0470.01332.62
7.1.10.0300.01014.80
7.1.00.0400.00714.88
7.0.200.0430.01015.07
7.0.190.0430.00715.09
7.0.180.0800.01014.66
7.0.170.0400.01014.51
7.0.160.0430.01014.55
7.0.150.0300.01014.70
7.0.140.0330.01014.54
7.0.130.0470.00014.82
7.0.120.0370.00714.78
7.0.110.0370.01014.84
7.0.100.0270.01714.64
7.0.90.0270.01714.48
7.0.80.0400.00714.68
7.0.70.0430.01014.60
7.0.60.0300.01014.55
7.0.50.0370.00714.75
7.0.40.0300.01014.74
7.0.30.0300.01014.68
7.0.20.0330.00714.61
7.0.10.0330.01314.68
7.0.00.0400.00314.60

preferences:
57.84 ms | 400 KiB | 5 Q