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 "\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.0110.00318.81
8.3.50.0110.00822.30
8.3.40.0140.00319.17
8.3.30.0070.00719.35
8.3.20.0060.00320.71
8.3.10.0080.00022.25
8.3.00.0040.00418.30
8.2.180.0070.00718.91
8.2.170.0150.00022.96
8.2.160.0100.00720.93
8.2.150.0030.00624.18
8.2.140.0070.00724.66
8.2.130.0070.01026.16
8.2.120.0040.00421.66
8.2.110.0030.00621.69
8.2.100.0040.00818.22
8.2.90.0000.00820.14
8.2.80.0050.00318.46
8.2.70.0060.00318.30
8.2.60.0040.00418.43
8.2.50.0030.00518.10
8.2.40.0000.00820.86
8.2.30.0040.00418.46
8.2.20.0000.00818.18
8.2.10.0000.00818.50
8.2.00.0040.00418.11
8.1.280.0080.00525.92
8.1.270.0060.00324.25
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00024.32
8.1.230.0110.00021.38
8.1.220.0000.00818.05
8.1.210.0090.00019.09
8.1.200.0060.00317.60
8.1.190.0030.00617.60
8.1.180.0060.00318.10
8.1.170.0040.00419.03
8.1.160.0050.00222.55
8.1.150.0050.00219.35
8.1.140.0000.00817.77
8.1.130.0030.00318.18
8.1.120.0020.00517.92
8.1.110.0040.00417.61
8.1.100.0000.00717.90
8.1.90.0000.00717.96
8.1.80.0000.00717.77
8.1.70.0030.00317.78
8.1.60.0040.00418.07
8.1.50.0060.00318.01
8.1.40.0000.00817.86
8.1.30.0000.00818.09
8.1.20.0000.00818.12
8.1.10.0000.00818.04
8.1.00.0040.00417.96
8.0.300.0070.00020.46
8.0.290.0040.00417.13
8.0.280.0030.00318.77
8.0.270.0040.00417.64
8.0.260.0030.00317.67
8.0.250.0070.00017.31
8.0.240.0030.00317.49
8.0.230.0040.00417.45
8.0.220.0030.00317.39
8.0.210.0040.00417.21
8.0.200.0060.00317.20
8.0.190.0000.00717.46
8.0.180.0050.00217.19
8.0.170.0060.00317.45
8.0.160.0040.00417.41
8.0.150.0040.00417.38
8.0.140.0060.00317.36
8.0.130.0030.00313.86
8.0.120.0000.00817.41
8.0.110.0070.00017.36
8.0.100.0040.00417.34
8.0.90.0070.00017.41
8.0.80.0190.00317.34
8.0.70.0080.00017.39
8.0.60.0040.00417.36
8.0.50.0000.00817.25
8.0.30.0110.00817.37
8.0.20.0110.00817.62
8.0.10.0000.00717.25
8.0.00.0090.00917.40
7.4.330.0020.00215.40
7.4.320.0000.00616.80
7.4.300.0000.00717.05
7.4.290.0070.00016.92
7.4.280.0000.00816.82
7.4.270.0030.00316.88
7.4.260.0040.00416.86
7.4.250.0040.00416.76
7.4.240.0070.00016.90
7.4.230.0030.00316.95
7.4.220.0110.00616.99
7.4.210.0000.01517.01
7.4.200.0040.00416.88
7.4.160.0140.00317.05
7.4.150.0120.00617.40
7.4.140.0130.01117.86
7.4.130.0060.01216.93
7.4.120.0130.00716.89
7.4.110.0130.00317.00
7.4.100.0130.01016.96
7.4.90.0140.00416.86
7.4.80.0170.00019.39
7.4.70.0080.00816.84
7.4.60.0090.00916.87
7.4.50.0020.00216.84
7.4.40.0060.01216.83
7.4.30.0120.00416.85
7.4.00.0030.01215.12
7.3.330.0050.00013.84
7.3.320.0000.00513.53
7.3.310.0030.00316.56
7.3.300.0070.00016.77
7.3.290.0120.00316.81
7.3.280.0100.00816.83
7.3.270.0110.00817.40
7.3.260.0140.00716.80
7.3.250.0100.00716.83
7.3.240.0070.01716.78
7.3.230.0030.01416.82
7.3.210.0120.00616.80
7.3.200.0080.01519.39
7.3.190.0170.00317.02
7.3.180.0090.01016.91
7.3.170.0040.01416.86
7.3.160.0060.01316.87
7.3.120.0070.01015.16
7.3.10.0070.01016.76
7.3.00.0000.01516.75
7.2.330.0030.01417.07
7.2.320.0110.00516.90
7.2.310.0060.01117.08
7.2.300.0070.01016.75
7.2.290.0100.00617.13
7.2.130.0130.01016.65
7.2.120.0090.00616.75
7.2.110.0090.00516.63
7.2.100.0160.01016.56
7.2.90.0110.00716.73
7.2.80.0110.01116.82
7.2.70.0160.00317.25
7.2.60.0140.00317.00
7.2.50.0070.01316.68
7.2.40.0030.01216.93
7.2.30.0080.00416.67
7.2.20.0080.00817.23
7.2.10.0130.00317.25
7.2.00.0110.00716.88
7.1.250.0040.00815.72
7.1.70.0000.00717.40
7.1.60.0060.01819.25
7.1.50.0150.00917.11
7.1.00.0000.08022.79
7.0.200.0000.00717.09
7.0.140.0000.07722.30
7.0.60.0030.08720.22
7.0.50.0100.05718.18
7.0.40.0000.04720.33
7.0.30.0230.07020.42
7.0.20.0170.04320.30
7.0.10.0070.04320.45
7.0.00.0070.07320.48
5.6.280.0130.06321.32
5.6.210.0130.06320.79
5.6.200.0030.04018.45
5.6.190.0100.08320.71
5.6.180.0330.08020.71
5.6.170.0300.07720.87
5.6.160.0000.06020.77
5.6.150.0030.04018.49
5.6.140.0100.07718.27
5.6.130.0100.07718.38
5.6.120.0070.07721.25
5.6.110.0100.08021.17
5.6.100.0100.08321.25
5.6.90.0100.07021.27
5.6.80.0030.05320.52
5.5.350.0100.07020.67
5.5.340.0030.06718.18
5.5.330.0030.04320.45
5.5.320.0370.06020.71
5.5.310.0230.07320.55
5.5.300.0130.07318.28
5.5.290.0100.04018.20
5.5.280.0070.04720.92
5.5.270.0070.07320.93
5.5.260.0170.07720.99
5.5.250.0100.07020.76
5.5.240.0270.06720.40
5.4.450.0300.04019.55
5.4.440.0230.05019.57
5.4.430.0330.05019.54
5.4.420.0600.04019.63
5.4.410.0830.04319.59
5.4.400.0870.03719.24
5.4.390.1070.04319.47
5.4.380.0370.05319.01
5.4.370.0500.04718.96
5.4.360.0270.05319.00
5.4.350.0270.05718.85
5.4.340.0530.05018.98
5.4.320.0080.03412.79
5.4.310.0040.04612.79
5.4.300.0070.04512.79
5.4.290.0060.04312.79
5.4.280.0150.07512.68
5.4.270.0140.09812.69
5.4.260.0120.07212.68
5.4.250.0100.06912.68
5.4.240.0130.04112.69
5.4.230.0080.04612.68
5.4.220.0100.04512.68
5.4.210.0100.04212.68
5.4.200.0080.03812.68
5.4.190.0060.03912.67
5.4.180.0080.03812.68
5.4.170.0050.04112.68
5.4.160.0060.03712.68
5.4.150.0040.03912.68
5.4.140.0060.04712.36
5.4.130.0070.03612.35
5.4.120.0040.03812.31
5.4.110.0060.03512.30
5.4.100.0040.04312.31
5.4.90.0080.04312.31
5.4.80.0060.03612.30
5.4.70.0040.03712.30
5.4.60.0040.03612.30
5.4.50.0070.04412.29
5.4.40.0060.03912.29
5.4.30.0080.03612.28
5.4.20.0040.04012.28
5.4.10.0080.03712.28
5.4.00.0070.03611.77
5.3.290.0060.04013.05
5.3.280.0040.03912.98
5.3.270.0080.03712.99
5.3.260.0050.04012.99
5.3.250.0060.04312.99
5.3.240.0050.03812.98
5.3.230.0090.03412.98
5.3.220.0060.04212.95
5.3.210.0080.04212.95
5.3.200.0080.04612.95
5.3.190.0070.04312.96
5.3.180.0040.04212.95
5.3.170.0100.03312.95
5.3.160.0070.04112.95
5.3.150.0080.04112.95
5.3.140.0060.04812.93
5.3.130.0040.04412.93
5.3.120.0060.04212.93
5.3.110.0050.05712.93
5.3.100.0080.03612.41
5.3.90.0070.03612.40
5.3.80.0090.03312.39
5.3.70.0100.03312.39
5.3.60.0050.03812.37
5.3.50.0060.03712.32
5.3.40.0100.03212.32
5.3.30.0080.03312.28
5.3.20.0060.03612.07
5.3.10.0090.03312.03
5.3.00.0050.03612.02
5.2.170.0060.0309.53
5.2.160.0040.0319.52
5.2.150.0050.0309.53
5.2.140.0070.0319.52
5.2.130.0040.0329.48
5.2.120.0040.0339.48
5.2.110.0070.0289.49
5.2.100.0090.0319.48
5.2.90.0060.0299.48
5.2.80.0060.0399.47
5.2.70.0050.0319.48
5.2.60.0050.0309.43
5.2.50.0070.0299.40
5.2.40.0060.0279.38
5.2.30.0040.0319.34
5.2.20.0040.0309.36
5.2.10.0050.0309.26
5.2.00.0060.0319.12
5.1.60.0070.0228.40
5.1.50.0050.0258.40
5.1.40.0020.0268.38
5.1.30.0040.0288.73
5.1.20.0040.0278.75
5.1.10.0040.0268.47
5.1.00.0010.0298.47
5.0.50.0080.0176.95
5.0.40.0030.0206.81
5.0.30.0060.0296.63
5.0.20.0040.0206.59
5.0.10.0030.0216.57
5.0.00.0030.0316.56
4.4.90.0030.0154.78
4.4.80.0030.0164.75
4.4.70.0020.0164.75
4.4.60.0040.0154.75
4.4.50.0060.0134.77
4.4.40.0050.0294.71
4.4.30.0030.0184.76
4.4.20.0050.0174.84
4.4.10.0050.0214.85
4.4.00.0040.0314.76
4.3.110.0050.0214.67
4.3.100.0040.0264.66
4.3.90.0030.0174.64
4.3.80.0030.0254.58
4.3.70.0020.0164.63
4.3.60.0050.0124.63
4.3.50.0020.0164.62
4.3.40.0020.0254.54
4.3.30.0010.0173.33
4.3.20.0010.0233.30
4.3.10.0030.0183.24
4.3.00.0070.03015.28

preferences:
48.64 ms | 401 KiB | 5 Q