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.60.0070.01318.70
8.3.50.0160.00322.23
8.3.40.0110.00719.34
8.3.30.0070.00719.40
8.3.20.0040.00420.79
8.3.10.0060.00322.34
8.3.00.0080.00018.43
8.2.180.0140.00716.98
8.2.170.0100.01022.96
8.2.160.0100.00320.89
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0130.00726.16
8.2.120.0000.00821.66
8.2.110.0030.00622.53
8.2.100.0060.00620.07
8.2.90.0040.00419.59
8.2.80.0050.00318.13
8.2.70.0030.00618.13
8.2.60.0030.00518.54
8.2.50.0000.00818.13
8.2.40.0030.00618.59
8.2.30.0000.00718.75
8.2.20.0040.00418.23
8.2.10.0080.00018.45
8.2.00.0070.00018.23
8.1.280.0070.00725.92
8.1.270.0000.00824.22
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0100.00024.19
8.1.230.0060.00619.47
8.1.220.0040.00418.04
8.1.210.0060.00318.77
8.1.200.0030.00617.59
8.1.190.0060.00317.73
8.1.180.0000.00818.10
8.1.170.0040.00418.98
8.1.160.0080.00022.52
8.1.150.0000.00919.21
8.1.140.0000.00717.89
8.1.130.0000.00718.29
8.1.120.0040.00417.86
8.1.110.0000.00917.89
8.1.100.0000.00717.68
8.1.90.0040.00417.90
8.1.80.0000.00817.95
8.1.70.0030.00317.70
8.1.60.0090.00018.02
8.1.50.0060.00318.01
8.1.40.0030.00517.98
8.1.30.0000.00817.89
8.1.20.0030.00618.13
8.1.10.0040.00417.79
8.1.00.0030.00618.01
8.0.300.0040.00418.77
8.0.290.0060.00317.13
8.0.280.0040.00418.80
8.0.270.0070.00017.65
8.0.260.0040.00418.86
8.0.250.0040.00417.21
8.0.240.0000.00717.46
8.0.230.0040.00417.19
8.0.220.0030.00317.43
8.0.210.0000.00717.44
8.0.200.0000.00917.23
8.0.190.0050.00317.52
8.0.180.0030.00617.27
8.0.170.0080.00017.39
8.0.160.0020.00517.51
8.0.150.0000.00717.17
8.0.140.0000.00817.39
8.0.130.0000.00613.90
8.0.120.0040.00417.40
8.0.110.0000.00717.34
8.0.100.0000.00717.40
8.0.90.0040.00317.22
8.0.80.0090.00917.29
8.0.70.0080.00017.23
8.0.60.0000.00817.05
8.0.50.0070.00017.39
8.0.30.0130.00617.49
8.0.20.0100.01217.52
8.0.10.0000.00817.39
8.0.00.0090.01016.94
7.4.330.0000.00515.57
7.4.320.0030.00316.98
7.4.300.0000.00617.05
7.4.290.0040.00416.96
7.4.280.0050.00316.91
7.4.270.0030.00317.03
7.4.260.0030.00616.98
7.4.250.0030.00516.89
7.4.240.0020.00517.07
7.4.230.0030.00517.02
7.4.220.0060.01216.92
7.4.210.0100.01016.91
7.4.200.0030.00316.73
7.4.160.0130.00616.99
7.4.150.0120.00617.40
7.4.140.0080.01717.86
7.4.130.0080.01016.90
7.4.120.0160.00616.89
7.4.110.0030.01416.79
7.4.100.0090.01017.18
7.4.90.0110.00717.00
7.4.80.0100.00719.39
7.4.70.0070.01016.85
7.4.60.0130.01016.77
7.4.50.0070.00017.07
7.4.40.0060.01616.71
7.4.30.0080.00817.09
7.4.10.0080.01115.92
7.4.00.0080.00715.65
7.3.330.0000.00513.83
7.3.320.0050.00013.81
7.3.310.0030.00316.85
7.3.300.0070.00016.73
7.3.290.0030.01216.89
7.3.280.0120.01016.82
7.3.270.0080.01617.40
7.3.260.0090.00916.91
7.3.250.0130.00816.88
7.3.240.0130.00316.80
7.3.230.0090.00916.96
7.3.210.0120.00617.03
7.3.200.0090.01419.39
7.3.190.0120.00616.93
7.3.180.0130.00716.95
7.3.170.0160.00716.79
7.3.160.0090.00917.02
7.3.130.0090.00715.69
7.3.120.0060.00815.60
7.3.110.0040.01015.79
7.3.100.0050.00615.71
7.3.90.0050.00516.03
7.3.80.0040.00815.82
7.3.70.0050.00815.84
7.3.60.0060.00715.88
7.3.50.0040.00915.76
7.3.40.0020.00815.71
7.3.30.0050.00715.91
7.3.20.0080.00517.73
7.3.10.0050.00917.59
7.3.00.0050.01017.48
7.2.330.0170.00016.98
7.2.320.0170.00016.99
7.2.310.0120.00416.93
7.2.300.0130.00316.95
7.2.290.0190.00417.20
7.2.260.0070.01115.94
7.2.250.0090.01015.96
7.2.240.0050.01015.64
7.2.230.0040.00916.02
7.2.220.0020.00816.27
7.2.210.0080.00615.96
7.2.200.0030.01216.07
7.2.190.0040.01215.85
7.2.180.0050.00616.21
7.2.170.0050.00915.91
7.2.160.0080.00516.02
7.2.150.0050.00717.78
7.2.140.0060.00717.79
7.2.130.0090.00517.89
7.2.120.0070.00518.05
7.2.110.0030.00817.81
7.2.100.0090.00317.87
7.2.90.0030.01317.82
7.2.80.0080.00917.78
7.2.70.0020.01017.92
7.2.60.0020.01417.69
7.2.50.0070.00717.98
7.2.40.0050.00618.04
7.2.30.0070.00817.91
7.2.20.0080.00617.69
7.2.10.0100.00517.90
7.2.00.0050.00818.57
7.1.330.0070.00616.83
7.1.320.0010.01216.75
7.1.310.0070.00716.85
7.1.300.0040.01016.86
7.1.290.0050.00716.78
7.1.280.0080.00316.69
7.1.270.0050.01016.79
7.1.260.0020.00916.79
7.1.250.0040.00716.79
7.1.240.0060.00616.72
7.1.230.0050.01016.68
7.1.220.0050.00716.62
7.1.210.0040.01116.64
7.1.200.0070.01016.57
7.1.190.0040.00916.76
7.1.180.0070.00516.61
7.1.170.0060.00816.62
7.1.160.0030.00916.81
7.1.150.0020.00916.73
7.1.140.0100.00316.67
7.1.130.0050.00516.74
7.1.120.0050.00616.83
7.1.110.0050.01016.92
7.1.100.0050.00917.28
7.1.90.0020.01016.78
7.1.80.0030.01016.80
7.1.70.0070.00516.88
7.1.60.0060.00917.61
7.1.50.0040.00716.68
7.1.40.0080.00716.95
7.1.30.0040.00716.63
7.1.20.0030.01316.69
7.1.10.0060.00916.62
7.1.00.0040.03118.72
7.0.330.0050.00916.56
7.0.320.0070.00516.51
7.0.310.0090.00316.31
7.0.300.0020.01316.52
7.0.290.0030.00816.35
7.0.280.0020.00916.63
7.0.270.0120.00416.34
7.0.260.0100.00516.48
7.0.250.0040.00816.59
7.0.240.0050.00816.29
7.0.230.0060.00516.36
7.0.220.0020.01216.43
7.0.210.0050.00716.45
7.0.200.0030.00716.53
7.0.190.0090.00616.55
7.0.180.0040.00916.62
7.0.170.0070.00816.50
7.0.160.0020.01016.69
7.0.150.0030.01216.30
7.0.140.0060.03118.25
7.0.130.0020.01216.41
7.0.120.0020.01016.58
7.0.110.0070.00916.44
7.0.100.0040.01116.46
7.0.90.0050.00416.46
7.0.80.0010.00916.48
7.0.70.0080.00616.34
7.0.60.0060.03317.67
7.0.50.0050.03317.03
7.0.40.0030.03016.44
7.0.30.0250.02616.43
7.0.20.0150.03016.43
7.0.10.0020.03816.39
7.0.00.0070.03316.34
5.6.400.0090.00315.49
5.6.390.0060.00815.39
5.6.380.0030.01115.47
5.6.370.0020.00815.21
5.6.360.0020.01115.56
5.6.350.0050.00915.21
5.6.340.0050.00815.36
5.6.330.0010.00915.22
5.6.320.0090.00715.68
5.6.310.0070.00715.33
5.6.300.0100.00815.40
5.6.290.0060.00915.60
5.6.280.0050.03217.28
5.6.270.0040.00815.39
5.6.260.0050.00815.33
5.6.250.0050.00915.36
5.6.240.0060.00915.58
5.6.230.0060.00615.51
5.6.220.0080.00615.28
5.6.210.0070.03117.31
5.6.200.0070.01816.35
5.6.190.0060.03416.99
5.6.180.1200.01517.19
5.6.170.0140.03117.28
5.6.160.0060.02017.07
5.6.150.0110.02616.25
5.6.140.0080.02616.36
5.6.130.0050.02616.30
5.6.120.0080.03317.40
5.6.110.0070.03117.40
5.6.100.0100.03017.34
5.6.90.0040.03517.33
5.6.80.0040.03116.96
5.6.70.1460.01717.00
5.6.60.0030.00715.15
5.6.50.0050.01115.45
5.6.40.0060.00615.31
5.6.30.0070.00515.35
5.6.20.0040.00715.25
5.6.10.0050.01015.53
5.6.00.0020.00915.18
5.5.380.0070.00715.44
5.5.370.0020.01115.60
5.5.360.0050.00715.27
5.5.350.0040.01917.12
5.5.340.0030.01816.32
5.5.330.0050.03316.96
5.5.320.1400.01817.20
5.5.310.0140.02017.15
5.5.300.0090.03016.30
5.5.290.0080.02116.18
5.5.280.0050.03017.30
5.5.270.0030.01917.27
5.5.260.0030.03617.25
5.5.250.0050.03217.22
5.5.240.0100.03016.95
5.5.230.0060.00915.21
5.5.220.0040.00815.14
5.5.210.0030.01215.03
5.5.200.0060.00514.96
5.5.190.0070.00515.26
5.5.180.0080.00315.41
5.5.170.0050.00815.28
5.5.160.0080.00715.28
5.5.150.0000.01115.29
5.5.140.0070.00715.19
5.5.130.0020.01015.32
5.5.120.0040.00715.47
5.5.110.0060.00815.37
5.5.100.0040.00615.17
5.5.90.0040.00715.16
5.5.80.0030.01015.20
5.5.70.0090.00615.26
5.5.60.0050.01114.99
5.5.50.0030.00715.17
5.5.40.0030.00815.31
5.5.30.0070.00515.29
5.5.20.0050.00815.30
5.5.10.0040.00915.31
5.5.00.0050.00615.39
5.4.450.0180.02014.71
5.4.440.0120.01914.74
5.4.430.0150.01614.67
5.4.420.0100.01314.50
5.4.410.0120.01914.62
5.4.400.0160.01714.60
5.4.390.0130.02214.62
5.4.380.0140.03114.49
5.4.370.0250.01814.28
5.4.360.0190.01714.49
5.4.350.0230.02714.32
5.4.340.0160.02314.35
5.4.330.0060.00312.18
5.4.320.0030.01912.30
5.4.310.0030.02512.33
5.4.300.0070.02012.29
5.4.290.0060.01912.29
5.4.280.0080.01712.35
5.4.270.0060.01612.27
5.4.260.0080.01812.25
5.4.250.0060.01912.41
5.4.240.0040.02012.24
5.4.230.0020.02012.32
5.4.220.0050.01712.27
5.4.210.0020.01912.38
5.4.200.0050.01612.26
5.4.190.0030.01812.25
5.4.180.0070.01712.18
5.4.170.0060.02112.30
5.4.160.0060.01812.29
5.4.150.0040.02312.25
5.4.140.0070.02012.11
5.4.130.0060.02212.25
5.4.120.0050.01712.17
5.4.110.0070.01612.14
5.4.100.0060.02012.22
5.4.90.0060.02112.13
5.4.80.0060.02712.16
5.4.70.0060.01712.20
5.4.60.0100.01612.27
5.4.50.0050.01712.16
5.4.40.0020.01812.29
5.4.30.0030.02112.20
5.4.20.0080.02612.26
5.4.10.0050.02312.19
5.4.00.0050.02811.97
5.3.290.0050.01812.44
5.3.280.0070.03012.32
5.3.270.0060.01912.46
5.3.260.0030.01812.44
5.3.250.0050.02012.43
5.3.240.0080.01812.38
5.3.230.0070.01812.39
5.3.220.0040.01812.37
5.3.210.0090.01712.35
5.3.200.0050.02412.33
5.3.190.0040.01812.29
5.3.180.0040.01712.48
5.3.170.0040.01612.50
5.3.160.0060.01512.38
5.3.150.0070.01812.39
5.3.140.0040.02012.40
5.3.130.0060.01612.40
5.3.120.0040.01812.38
5.3.110.0050.01712.44
5.3.100.0070.02012.26
5.3.90.0060.01612.34
5.3.80.0060.01712.20
5.3.70.0050.02112.18
5.3.60.0030.01812.19
5.3.50.0040.01712.14
5.3.40.0060.01412.18
5.3.30.0030.01812.07
5.3.20.0040.01712.10
5.3.10.0040.01611.97
5.3.00.0040.01711.93
5.2.170.0050.0359.51
5.2.160.0080.0269.51
5.2.150.0060.0299.51
5.2.140.0090.0279.51
5.2.130.0030.0319.47
5.2.120.0040.0319.46
5.2.110.0060.0329.48
5.2.100.0060.0329.47
5.2.90.0040.0319.46
5.2.80.0030.0329.46
5.2.70.0050.0329.46
5.2.60.0070.0289.42
5.2.50.0070.0299.38
5.2.40.0080.0279.36
5.2.30.0060.0299.33
5.2.20.0050.0299.34
5.2.10.0050.0299.24
5.2.00.0060.0329.10
5.1.60.0040.0248.38
5.1.50.0050.0248.38
5.1.40.0050.0298.36
5.1.30.0050.0288.71
5.1.20.0050.0278.73
5.1.10.0060.0268.45
5.1.00.0040.0298.45
5.0.50.0120.0316.93
5.0.40.0060.0286.79
5.0.30.0090.0406.61
5.0.20.0060.0256.57
5.0.10.0040.0286.55
5.0.00.0050.0386.54
4.4.90.0030.0204.78
4.4.80.0040.0184.76
4.4.70.0050.0144.75
4.4.60.0030.0164.75
4.4.50.0020.0204.77
4.4.40.0040.0294.71
4.4.30.0040.0194.76
4.4.20.0050.0134.84
4.4.10.0040.0154.85
4.4.00.0030.0294.76
4.3.110.0040.0204.67
4.3.100.0030.0204.66
4.3.90.0010.0224.64
4.3.80.0000.0344.58
4.3.70.0050.0184.63
4.3.60.0030.0204.63
4.3.50.0040.0224.63
4.3.40.0040.0324.53
4.3.30.0010.0223.32
4.3.20.0040.0193.30
4.3.10.0030.0213.25
4.3.00.0000.02015.27

preferences:
46.37 ms | 401 KiB | 5 Q