3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <?xml version="1.0"?> <root> <element> <feed id=" 9 "> <title>test</title> <table>feeds</table> <link/> <feed_type>API</feed_type> <affiliate/> <mwst>ja</mwst> <tld>DE</tld> <query/> </feed> <feed id=" 10 "> <title>test</title> <table>feeds</table> <link/> <feed_type>API</feed_type> <affiliate/> <mwst>ja</mwst> <tld>DE</tld> <query/> </feed> </element> </root> XML ); function deleteNode($feed_id) { global $xml; $parent=$xml->xpath('[feed[@id=" '.$feed_id.' "]]'); unset($parent); } echo $xml->asXML(); echo "\n"; deleteNode("10"); echo $xml->asXML();

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.40.0100.00719.21
8.3.30.0110.00419.53
8.3.20.0000.00820.59
8.3.10.0040.00422.38
8.3.00.0030.00620.06
8.2.170.0120.00322.96
8.2.160.0100.01020.85
8.2.150.0080.00024.18
8.2.140.0100.01024.66
8.2.130.0070.01126.16
8.2.120.0040.00421.60
8.2.110.0070.01022.67
8.2.100.0040.00818.47
8.2.90.0050.00319.67
8.2.80.0030.00518.00
8.2.70.0000.00918.13
8.2.60.0040.00418.28
8.2.50.0030.00618.07
8.2.40.0030.00620.51
8.2.30.0000.00718.52
8.2.20.0000.00818.06
8.2.10.0000.00818.43
8.2.00.0050.00218.05
8.1.270.0080.00024.37
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00322.75
8.1.230.0080.00319.40
8.1.220.0040.00418.16
8.1.210.0000.00918.77
8.1.200.0030.00717.72
8.1.190.0040.00417.47
8.1.180.0080.00018.10
8.1.170.0040.00418.91
8.1.160.0000.00722.33
8.1.150.0070.00019.24
8.1.140.0030.00617.77
8.1.130.0070.00018.19
8.1.120.0000.00717.86
8.1.110.0000.00817.87
8.1.100.0040.00417.97
8.1.90.0050.00217.80
8.1.80.0040.00417.93
8.1.70.0000.00717.88
8.1.60.0000.00818.02
8.1.50.0000.00817.86
8.1.40.0040.00418.05
8.1.30.0000.00917.87
8.1.20.0040.00418.03
8.1.10.0040.00417.83
8.1.00.0040.00417.95
8.0.300.0060.00318.77
8.0.290.0070.00317.13
8.0.280.0000.00718.86
8.0.270.0040.00417.60
8.0.260.0000.00617.63
8.0.250.0030.00517.49
8.0.240.0030.00317.51
8.0.230.0000.00717.21
8.0.220.0040.00417.15
8.0.210.0080.00017.42
8.0.200.0030.00617.53
8.0.190.0040.00417.46
8.0.180.0040.00417.30
8.0.170.0080.00017.30
8.0.160.0000.00717.42
8.0.150.0040.00417.43
8.0.140.0000.00717.22
8.0.130.0000.00713.67
8.0.120.0000.00817.18
8.0.110.0000.00817.43
8.0.100.0000.00717.34
8.0.90.0040.00417.34
8.0.80.0060.00917.27
8.0.70.0040.00417.27
8.0.60.0020.00517.22
8.0.50.0000.00817.20
8.0.30.0120.01017.25
8.0.20.0060.01317.48
8.0.10.0070.00017.38
8.0.00.0120.00517.03
7.4.330.0000.00515.46
7.4.320.0000.00616.86
7.4.300.0030.00316.95
7.4.290.0030.00317.02
7.4.280.0050.00516.95
7.4.270.0030.00317.04
7.4.260.0100.00017.05
7.4.250.0000.00716.89
7.4.240.0030.00517.03
7.4.230.0030.00316.95
7.4.220.0070.01116.93
7.4.210.0110.00316.89
7.4.200.0030.00517.00
7.4.160.0070.01017.04
7.4.150.0090.00917.40
7.4.140.0110.01117.86
7.4.130.0030.01416.84
7.4.120.0090.01216.98
7.4.110.0130.00416.88
7.4.100.0120.01216.94
7.4.90.0140.00416.88
7.4.80.0030.01419.39
7.4.70.0090.00916.97
7.4.60.0070.01416.80
7.4.50.0050.00016.93
7.4.40.0070.01016.97
7.4.30.0130.00316.92
7.4.00.0060.00914.93
7.3.330.0000.00513.80
7.3.320.0050.00013.58
7.3.310.0000.00716.84
7.3.300.0030.00316.75
7.3.290.0130.00716.83
7.3.280.0100.00616.71
7.3.270.0140.00317.40
7.3.260.0140.00317.03
7.3.250.0080.00916.86
7.3.240.0120.01516.83
7.3.230.0180.00016.77
7.3.210.0110.00616.91
7.3.200.0080.00619.39
7.3.190.0130.00416.94
7.3.180.0080.00816.86
7.3.170.0130.01016.86
7.3.160.0040.01216.86
7.3.120.0060.01215.12
7.3.10.0120.00316.60
7.3.00.0150.00316.39
7.2.330.0060.01216.83
7.2.320.0070.01117.09
7.2.310.0060.01617.00
7.2.300.0100.00717.12
7.2.290.0130.00617.18
7.2.130.0080.00916.80
7.2.120.0070.01216.92
7.2.110.0180.00316.55
7.2.100.0120.01116.86
7.2.90.0130.00816.85
7.2.80.0120.01016.88
7.2.70.0140.00917.10
7.2.60.0120.00916.81
7.2.50.0110.01016.90
7.2.40.0170.00716.79
7.2.30.0110.00916.74
7.2.20.0190.00916.92
7.2.10.0210.01216.82
7.2.00.0140.00917.93
7.1.250.0070.00715.86
7.1.100.0060.00918.31
7.1.70.0030.00617.10
7.1.60.0030.02019.25
7.1.50.0090.01516.99
7.1.00.0100.07022.61
7.0.200.0050.00217.05
7.0.140.0100.06722.11
7.0.60.0030.07020.13
7.0.50.0070.07018.09
7.0.40.0100.06320.49
7.0.30.0200.03720.34
7.0.20.0170.08020.38
7.0.10.0100.04020.42
7.0.00.0000.09020.31
5.6.280.0000.07721.38
5.6.210.0100.08321.03
5.6.200.0030.04318.41
5.6.190.0030.06020.58
5.6.180.0330.07720.91
5.6.170.0200.05020.66
5.6.160.0030.05320.79
5.6.150.0130.07318.35
5.6.140.0100.06318.39
5.6.130.0070.08018.40
5.6.120.0030.08321.22
5.6.110.0000.05721.23
5.6.100.0030.08721.23
5.6.90.0030.04721.19
5.6.80.0030.08020.60
5.5.350.0230.07720.57
5.5.340.0130.03718.27
5.5.330.0130.07720.41
5.5.320.0300.06720.46
5.5.310.0300.05020.52
5.5.300.0030.08718.21
5.5.290.0200.03018.07
5.5.280.0070.03721.00
5.5.270.0070.08320.92
5.5.260.0030.04320.89
5.5.250.0070.08020.76
5.5.240.0030.08720.39
5.4.450.0100.03719.80
5.4.440.0270.03719.61
5.4.430.0200.04319.45
5.4.420.0330.03319.64
5.4.410.0600.04019.48
5.4.400.0870.03719.25
5.4.390.0830.03719.32
5.4.380.0430.06018.67
5.4.370.0170.06018.96
5.4.360.0230.05319.00
5.4.350.0230.05718.92
5.4.340.0400.04719.04
5.4.320.0070.03412.77
5.4.310.0050.03912.77
5.4.300.0030.04112.77
5.4.290.0020.04212.77
5.4.280.0060.03812.66
5.4.270.0090.03412.67
5.4.260.0080.03612.67
5.4.250.0110.03212.67
5.4.240.0070.03612.67
5.4.230.0050.03912.66
5.4.220.0050.03812.66
5.4.210.0050.03812.66
5.4.200.0050.04112.66
5.4.190.0090.03912.65
5.4.180.0020.04012.66
5.4.170.0070.04312.66
5.4.160.0060.04012.66
5.4.150.0050.03612.66
5.4.140.0060.03612.34
5.4.130.0070.03312.33
5.4.120.0100.03112.29
5.4.110.0070.03512.29
5.4.100.0040.03712.28
5.4.90.0050.04112.28
5.4.80.0050.03812.29
5.4.70.0040.03612.28
5.4.60.0090.03812.28
5.4.50.0050.04112.27
5.4.40.0070.03312.26
5.4.30.0080.03412.26
5.4.20.0080.04312.26
5.4.10.0090.03212.26
5.4.00.0080.03711.75
5.3.290.0060.03913.03
5.3.280.0040.04212.95
5.3.270.0090.03612.96
5.3.260.0060.03812.97
5.3.250.0090.03412.96
5.3.240.0100.03612.96
5.3.230.0050.04012.96
5.3.220.0080.04212.93
5.3.210.0070.04312.93
5.3.200.0090.04112.93
5.3.190.0060.03712.93
5.3.180.0060.03612.93
5.3.170.0060.04612.93
5.3.160.0080.03912.93
5.3.150.0060.04612.92
5.3.140.0030.03912.91
5.3.130.0060.04012.91
5.3.120.0050.04612.91
5.3.110.0060.04812.91
5.3.100.0050.04012.40
5.3.90.0110.03912.38
5.3.80.0070.03712.38
5.3.70.0100.03512.37
5.3.60.0090.04712.35
5.3.50.0050.04012.31
5.3.40.0060.03712.31
5.3.30.0050.03812.27
5.3.20.0070.03412.05
5.3.10.0080.03812.01
5.3.00.0100.04312.00
5.2.170.0090.0339.51
5.2.160.0070.0299.50
5.2.150.0050.0309.50
5.2.140.0050.0349.50
5.2.130.0040.0369.46
5.2.120.0050.0289.46
5.2.110.0050.0299.47
5.2.100.0050.0379.46
5.2.90.0050.0299.46
5.2.80.0070.0379.46
5.2.70.0060.0309.46
5.2.60.0100.0279.41
5.2.50.0040.0349.38
5.2.40.0040.0339.35
5.2.30.0040.0379.33
5.2.20.0020.0319.34
5.2.10.0060.0269.24
5.2.00.0080.0309.10
5.1.60.0070.0288.39
5.1.50.0060.0238.38
5.1.40.0040.0328.36
5.1.30.0060.0248.71
5.1.20.0090.0288.73
5.1.10.0050.0298.45
5.1.00.0080.0328.46
5.0.50.0060.0246.93
5.0.40.0040.0206.79
5.0.30.0010.0376.61
5.0.20.0030.0226.57
5.0.10.0030.0256.55
5.0.00.0040.0336.54
4.4.90.0040.0194.78
4.4.80.0060.0174.76
4.4.70.0030.0174.76
4.4.60.0030.0164.76
4.4.50.0030.0154.77
4.4.40.0020.0324.71
4.4.30.0030.0164.76
4.4.20.0040.0144.84
4.4.10.0040.0154.85
4.4.00.0020.0294.76
4.3.110.0030.0194.67
4.3.100.0040.0164.66
4.3.90.0030.0154.63
4.3.80.0050.0244.59
4.3.70.0030.0204.63
4.3.60.0030.0164.63
4.3.50.0010.0174.63
4.3.40.0020.0294.54
4.3.30.0020.0173.32
4.3.20.0020.0163.30
4.3.10.0010.0173.25
4.3.00.0100.02715.28

preferences:
39.81 ms | 400 KiB | 5 Q