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[0][0]); } 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.0130.00719.34
8.3.30.0040.01119.51
8.3.20.0080.00020.63
8.3.10.0040.00422.30
8.3.00.0040.00418.16
8.2.170.0150.00622.96
8.2.160.0120.00320.85
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0030.01026.16
8.2.120.0000.00921.59
8.2.110.0030.00621.47
8.2.100.0080.00418.34
8.2.90.0050.00319.59
8.2.80.0000.00918.00
8.2.70.0040.00418.00
8.2.60.0040.00418.30
8.2.50.0000.00818.10
8.2.40.0040.00420.89
8.2.30.0040.00418.60
8.2.20.0000.00818.12
8.2.10.0040.00418.51
8.2.00.0040.00418.16
8.1.270.0080.00024.34
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00024.30
8.1.230.0060.00617.76
8.1.220.0070.00318.02
8.1.210.0050.00518.77
8.1.200.0000.00917.73
8.1.190.0000.00817.90
8.1.180.0000.00918.10
8.1.170.0080.00018.94
8.1.160.0040.00422.45
8.1.150.0060.00319.30
8.1.140.0050.00317.85
8.1.130.0050.00218.13
8.1.120.0020.00517.70
8.1.110.0050.00317.93
8.1.100.0070.00017.94
8.1.90.0020.00517.93
8.1.80.0090.00017.92
8.1.70.0000.00717.88
8.1.60.0030.00618.01
8.1.50.0040.00417.96
8.1.40.0030.00617.97
8.1.30.0040.00418.14
8.1.20.0030.00518.15
8.1.10.0030.00617.88
8.1.00.0040.00417.73
8.0.300.0050.00218.95
8.0.290.0030.00517.13
8.0.280.0050.00318.86
8.0.270.0070.00018.41
8.0.260.0030.00318.87
8.0.250.0030.00317.29
8.0.240.0070.00017.45
8.0.230.0070.00017.50
8.0.220.0040.00417.33
8.0.210.0040.00417.41
8.0.200.0070.00417.14
8.0.190.0050.00317.40
8.0.180.0000.00817.25
8.0.170.0040.00417.46
8.0.160.0000.00717.24
8.0.150.0040.00417.35
8.0.140.0040.00417.31
8.0.130.0030.00313.71
8.0.120.0060.00317.20
8.0.110.0040.00417.23
8.0.100.0040.00417.32
8.0.90.0000.00717.43
8.0.80.0140.01017.27
8.0.70.0000.00717.35
8.0.60.0050.00317.18
8.0.50.0040.00417.33
8.0.30.0070.01717.33
8.0.20.0140.00817.48
8.0.10.0030.00517.54
8.0.00.0090.01217.05
7.4.330.0050.00015.50
7.4.320.0040.00416.94
7.4.300.0050.00316.90
7.4.290.0070.00017.08
7.4.280.0080.00016.96
7.4.270.0000.00717.00
7.4.260.0050.00316.90
7.4.250.0000.00716.99
7.4.240.0000.00716.98
7.4.230.0030.00516.80
7.4.220.0110.00616.96
7.4.210.0090.00917.05
7.4.200.0050.00216.89
7.4.160.0060.00916.99
7.4.150.0150.00817.40
7.4.140.0110.01517.86
7.4.130.0110.00716.92
7.4.120.0080.01516.96
7.4.110.0110.00616.89
7.4.100.0140.00416.98
7.4.90.0110.00617.08
7.4.80.0090.00919.39
7.4.70.0110.00517.14
7.4.60.0170.00017.04
7.4.50.0020.00216.88
7.4.40.0030.01317.04
7.4.30.0040.01217.07
7.4.00.0090.00615.08
7.3.330.0050.00013.83
7.3.320.0020.00213.88
7.3.310.0000.00816.92
7.3.300.0000.00816.78
7.3.290.0040.01116.85
7.3.280.0080.01316.83
7.3.270.0140.00517.40
7.3.260.0140.00617.12
7.3.250.0090.00916.94
7.3.240.0100.00616.96
7.3.230.0080.00816.86
7.3.210.0100.00716.83
7.3.200.0040.01719.39
7.3.190.0060.01216.97
7.3.180.0170.00016.77
7.3.170.0170.00616.82
7.3.160.0090.00616.85
7.3.120.0090.00615.06
7.3.110.0140.00415.27
7.3.100.0070.01115.21
7.3.90.0000.01515.02
7.3.80.0090.00615.04
7.3.70.0070.00715.15
7.3.60.0070.00415.05
7.3.50.0070.00715.06
7.3.40.0030.01315.13
7.3.30.0070.01014.73
7.3.20.0070.00716.90
7.3.10.0130.00316.76
7.3.00.0100.00716.78
7.2.330.0130.01016.91
7.2.320.0130.00317.17
7.2.310.0100.00617.01
7.2.300.0100.00717.12
7.2.290.0120.00617.11
7.2.250.0150.00315.12
7.2.240.0120.00615.45
7.2.230.0110.00415.10
7.2.220.0100.00715.41
7.2.210.0060.00915.07
7.2.200.0080.00415.17
7.2.190.0050.00515.23
7.2.180.0030.01415.50
7.2.170.0000.01315.24
7.2.130.0120.00317.05
7.2.120.0100.01017.07
7.2.110.0100.00617.05
7.2.100.0100.01016.93
7.2.90.0150.00316.88
7.2.80.0120.00817.05
7.2.70.0150.00616.91
7.2.60.0180.00416.87
7.2.50.0110.01117.09
7.2.40.0150.00617.31
7.2.30.0080.01016.72
7.2.20.0080.01616.85
7.2.10.0170.01116.89
7.2.00.0110.00918.43
7.1.330.0150.00015.86
7.1.320.0040.00715.85
7.1.310.0100.00315.79
7.1.300.0000.01015.89
7.1.290.0000.01315.83
7.1.280.0090.00415.71
7.1.270.0000.01615.79
7.1.260.0060.00915.91
7.1.250.0120.00416.06
7.1.240.0090.01215.98
7.1.230.0140.00716.01
7.1.220.0190.01115.94
7.1.210.0160.00315.79
7.1.200.0130.00315.85
7.1.190.0170.00015.88
7.1.180.0130.00315.87
7.1.170.0090.00916.00
7.1.160.0120.00315.77
7.1.150.0150.00615.69
7.1.140.0190.00716.13
7.1.130.0190.00615.84
7.1.120.0220.00716.00
7.1.110.0110.00715.76
7.1.100.0120.00717.15
7.1.90.0180.00715.98
7.1.80.0230.00316.04
7.1.70.0070.01016.68
7.1.60.0130.01017.46
7.1.50.0100.01516.53
7.1.40.0180.00916.03
7.1.30.0200.01215.89
7.1.20.0110.00315.64
7.1.10.0110.02115.93
7.1.00.0150.03819.13
7.0.330.0120.00415.49
7.0.320.0100.01015.40
7.0.310.0150.00615.52
7.0.300.0150.00615.43
7.0.290.0130.00615.43
7.0.280.0120.00415.29
7.0.270.0080.01115.33
7.0.260.0070.01115.40
7.0.250.0090.00915.31
7.0.240.0110.00715.70
7.0.230.0110.00515.49
7.0.220.0140.00315.56
7.0.210.0070.01115.41
7.0.200.0070.00716.32
7.0.190.0110.00715.41
7.0.180.0130.00315.68
7.0.170.0150.01515.67
7.0.160.0230.00915.55
7.0.150.0120.01615.39
7.0.140.0090.04418.78
7.0.130.0150.01015.59
7.0.120.0190.00815.32
7.0.110.0090.01315.32
7.0.100.0180.00915.42
7.0.90.0110.01115.38
7.0.80.0130.00315.86
7.0.70.0100.00315.67
7.0.60.0120.04217.80
7.0.50.0100.04516.71
7.0.40.0070.04616.95
7.0.30.0150.03116.96
7.0.20.0150.03616.97
7.0.10.0070.02617.13
7.0.00.0090.02516.95
5.6.380.0090.00614.89
5.6.370.0050.01014.60
5.6.360.0000.01614.12
5.6.350.0050.00814.40
5.6.340.0040.01214.76
5.6.330.0030.01314.63
5.6.320.0070.00714.48
5.6.310.0040.01114.44
5.6.300.0150.00314.31
5.6.290.0030.01014.25
5.6.280.0060.03917.69
5.6.270.0090.00614.40
5.6.260.0060.01314.39
5.6.250.0070.00714.53
5.6.240.0040.01414.60
5.6.230.0000.01614.24
5.6.220.0060.00614.29
5.6.210.0030.05117.58
5.6.200.0070.03716.46
5.6.190.0050.04717.77
5.6.180.0400.03017.54
5.6.170.0150.02817.62
5.6.160.0110.04417.63
5.6.150.0120.04116.55
5.6.140.0110.03416.51
5.6.130.0120.03016.40
5.6.120.0050.04717.90
5.6.110.0070.04817.84
5.6.100.0080.04217.81
5.6.90.0070.04517.77
5.6.80.0110.03917.59
5.6.70.2070.02217.49
5.6.60.0000.01514.45
5.6.50.0000.01414.36
5.6.40.0090.00614.58
5.6.30.0030.01014.13
5.6.20.0130.00314.39
5.6.10.0130.00314.32
5.6.00.0090.00614.58
5.5.380.0110.00311.07
5.5.370.0090.00011.02
5.5.360.0050.00810.98
5.5.350.0080.04515.82
5.5.340.0090.04114.69
5.5.330.0110.03815.80
5.5.320.2050.01716.00
5.5.310.0130.02215.96
5.5.300.0040.02814.74
5.5.290.0040.04714.88
5.5.280.0080.03816.22
5.5.270.0050.04315.94
5.5.260.0100.03516.06
5.5.250.0060.04116.00
5.5.240.0070.02215.76
5.5.230.0000.01211.38
5.5.220.0080.00011.47
5.5.210.0060.00311.30
5.5.200.0060.00611.05
5.5.190.0030.00611.11
5.5.180.0000.01311.03
5.5.170.0030.01010.93
5.5.160.0060.00711.36
5.5.150.0060.00611.11
5.5.140.0040.00710.91
5.5.130.0000.01211.38
5.5.120.0000.01011.42
5.5.110.0040.00811.19
5.5.100.0070.00311.00
5.5.90.0030.00611.43
5.5.80.0000.01311.28
5.5.70.0100.00311.01
5.5.60.0060.00611.20
5.5.50.0000.01211.54
5.5.40.0000.01311.01
5.5.30.0000.01111.37
5.5.20.0100.00310.90
5.5.10.0000.01111.19
5.5.00.0030.00611.14
5.4.450.0220.02215.23
5.4.440.0110.02315.29
5.4.430.0100.02415.33
5.4.420.0260.02415.28
5.4.410.0130.01815.21
5.4.400.0090.02114.90
5.4.390.0280.02115.27
5.4.380.0240.02714.96
5.4.370.0140.03314.85
5.4.360.0180.03114.74
5.4.350.0240.03315.07
5.4.340.0250.03814.93
5.4.330.0050.00510.88
5.4.320.0060.02511.84
5.4.310.0050.02411.99
5.4.300.0050.02111.79
5.4.290.0070.02011.77
5.4.280.0080.01911.89
5.4.270.0060.02411.63
5.4.260.0070.02411.87
5.4.250.0110.01811.73
5.4.240.0050.02311.85
5.4.230.0090.01911.91
5.4.220.0050.02711.79
5.4.210.0060.02111.70
5.4.200.0020.02711.82
5.4.190.0060.01911.92
5.4.180.0040.02311.75
5.4.170.0040.02311.74
5.4.160.0080.01811.86
5.4.150.0050.02511.64
5.4.140.0060.02111.63
5.4.130.0080.01911.69
5.4.120.0030.02311.57
5.4.110.0060.02111.76
5.4.100.0090.02011.49
5.4.90.0040.02411.64
5.4.80.0050.02311.61
5.4.70.0030.02311.65
5.4.60.0090.01911.68
5.4.50.0050.02211.46
5.4.40.0080.01811.64
5.4.30.0060.01911.60
5.4.20.0060.02111.55
5.4.10.0040.02111.54
5.4.00.0060.01911.29
5.3.290.0070.02111.84
5.3.280.0050.02211.71
5.3.270.0030.02811.97
5.3.260.0050.02111.79
5.3.250.0060.02111.94
5.3.240.0040.02211.79
5.3.230.0040.02311.82
5.3.220.0050.02111.77
5.3.210.0030.02611.77
5.3.200.0070.02011.77
5.3.190.0060.02111.90
5.3.180.0050.02211.79
5.3.170.0040.02411.88
5.3.160.0040.02411.90
5.3.150.0040.02411.87
5.3.140.0090.01911.75
5.3.130.0090.01911.88
5.3.120.0050.02211.84
5.3.110.0040.02311.90
5.3.100.0090.02011.57
5.3.90.0060.01911.60
5.3.80.0050.02111.59
5.3.70.0070.02011.51
5.3.60.0040.02111.48
5.3.50.0090.01911.50
5.3.40.0040.02111.47
5.3.30.0020.02411.46
5.3.20.0090.02011.34
5.3.10.0040.02211.23
5.3.00.0020.02611.18
5.2.170.0080.0159.59
5.2.160.0050.0189.59
5.2.150.0080.0159.71
5.2.140.0020.0209.59
5.2.130.0030.0209.56
5.2.120.0040.0189.57
5.2.110.0040.0179.59
5.2.100.0060.0149.59
5.2.90.0030.0209.63
5.2.80.0040.0189.50
5.2.70.0040.0189.51
5.2.60.0060.0169.45
5.2.50.0060.0179.46
5.2.40.0010.0209.49
5.2.30.0040.0189.48
5.2.20.0040.0179.40
5.2.10.0040.0209.42
5.2.00.0030.0209.20
5.1.60.0080.0128.58
5.1.50.0050.0148.59
5.1.40.0060.0158.60
5.1.30.0030.0178.71
5.1.20.0050.0168.78
5.1.10.0080.0158.61
5.1.00.0080.0148.51
5.0.50.0020.0137.64
5.0.40.0040.0127.57
5.0.30.0050.0177.48
5.0.20.0030.0147.46
5.0.10.0060.0117.45
5.0.00.0070.0157.45
4.4.90.0050.0076.54
4.4.80.0030.0106.54
4.4.70.0020.0106.54
4.4.60.0020.0116.54
4.4.50.0030.0106.54
4.4.40.0020.0156.51
4.4.30.0040.0096.54
4.4.20.0060.0086.58
4.4.10.0030.0106.58
4.4.00.0030.0156.54
4.3.110.0030.0126.49
4.3.100.0020.0106.49
4.3.90.0040.0096.47
4.3.80.0040.0146.45
4.3.70.0040.0086.47
4.3.60.0030.0096.47
4.3.50.0030.0116.47
4.3.40.0030.0156.43
4.3.30.0010.0105.82
4.3.20.0030.0095.81
4.3.10.0050.0075.78
4.3.00.0020.01011.79

preferences:
44.71 ms | 400 KiB | 5 Q