3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sxe = new SimpleXMLElement('<foo><bar baz="quux">hello</bar> world<![CDATA[!]]></foo>'); $node = dom_import_simplexml($sxe); echo $node->textContent;

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.0150.00018.68
8.3.50.0070.00720.22
8.3.40.0100.00320.37
8.3.30.0040.01118.72
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.180.0110.00725.92
8.2.170.0110.00719.21
8.2.160.0070.00722.96
8.2.150.0070.00325.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00719.51
8.2.110.0050.00520.72
8.2.100.0080.00417.84
8.2.90.0040.00417.88
8.2.80.0000.00818.98
8.2.70.0000.00817.63
8.2.60.0030.00517.75
8.2.50.0050.00317.75
8.2.40.0040.00418.41
8.2.30.0000.00718.33
8.2.20.0040.00420.60
8.2.10.0040.00418.18
8.2.00.0040.00419.38
8.1.280.0110.00425.92
8.1.270.0080.00024.10
8.1.260.0120.00326.35
8.1.250.0000.00828.09
8.1.240.0090.00022.73
8.1.230.0110.00421.09
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0050.00317.48
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0080.00018.50
8.1.160.0000.00719.05
8.1.150.0040.00418.79
8.1.140.0000.00817.60
8.1.130.0030.00318.98
8.1.120.0040.00417.69
8.1.110.0020.00517.56
8.1.100.0000.00717.52
8.1.90.0050.00317.67
8.1.80.0030.00517.62
8.1.70.0170.00017.66
8.1.60.0130.00617.63
8.1.50.0040.00817.63
8.1.40.0210.00017.51
8.1.30.0110.00717.82
8.1.20.0120.00617.69
8.1.10.0180.00017.84
8.1.00.0150.00417.58
8.0.300.0030.00318.77
8.0.290.0040.00417.00
8.0.280.0070.00018.54
8.0.270.0070.00018.15
8.0.260.0030.00318.61
8.0.250.0000.00617.23
8.0.240.0050.00317.09
8.0.230.0030.00317.14
8.0.220.0030.00317.04
8.0.210.0080.00817.09
8.0.200.0080.00817.11
8.0.190.0100.00717.11
8.0.180.0140.00416.97
8.0.170.0060.01117.00
8.0.160.0140.00317.02
8.0.150.0130.00216.87
8.0.140.0060.00916.86
8.0.130.0040.01216.93
8.0.120.0090.00716.91
8.0.110.0140.00317.09
8.0.100.0110.00516.88
8.0.90.0130.00316.91
8.0.80.0120.00617.05
8.0.70.0180.00016.89
8.0.60.0120.00416.84
8.0.50.0130.00316.90
8.0.30.0120.00416.82
8.0.20.0110.00416.91
8.0.10.0140.00317.18
7.4.330.0040.00415.55
7.4.320.0040.00416.71
7.4.300.0100.00716.62
7.4.290.0110.00016.68
7.4.280.0140.00316.66
7.4.270.0080.00516.64
7.4.260.0100.00416.64
7.4.250.0090.00916.71
7.4.240.0120.00416.70
7.4.230.0130.00316.71
7.4.220.0040.00916.71
7.4.210.0060.00616.72
7.4.200.0100.00316.57
7.4.190.0160.00316.68
7.4.180.0050.00816.65
7.4.160.0080.00516.77
7.4.150.0100.00416.70
7.4.140.0090.00516.67
7.4.130.0110.00616.60
7.4.120.0090.00616.50
7.4.110.0140.00016.68
7.4.100.0100.00416.66
7.4.90.0110.00516.44
7.4.80.0120.00016.49
7.4.70.0130.00016.59
7.4.60.0090.00516.47
7.4.50.0000.01416.55
7.4.40.0100.00516.54
7.4.30.0070.00716.67
7.4.20.0120.00316.52
7.4.10.0110.00516.55
7.4.00.0100.00316.60

preferences:
54.89 ms | 400 KiB | 5 Q