3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<namesilo><request><operation>checkRegisterAvailability</operation><ip>1.1.1.1</ip></request><reply><code>300</code><detail>success</detail><available><domain price="11.79" premium="0">nononononodneodneond.net</domain></available></reply></namesilo>'; $simple = new simplexmlelement($xml); var_dump($simple);
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.16, 7.3.18 - 7.3.33, 7.4.0 - 7.4.4, 7.4.6 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.14, 8.4.1
object(SimpleXMLElement)#1 (2) { ["request"]=> object(SimpleXMLElement)#2 (2) { ["operation"]=> string(25) "checkRegisterAvailability" ["ip"]=> string(7) "1.1.1.1" } ["reply"]=> object(SimpleXMLElement)#3 (3) { ["code"]=> string(3) "300" ["detail"]=> string(7) "success" ["available"]=> object(SimpleXMLElement)#4 (1) { ["domain"]=> string(24) "nononononodneodneond.net" } } }
Output for 7.3.17, 7.4.5
object(SimpleXMLElement)#1 (2) { ["request"]=> object(SimpleXMLElement)#2 (2) { ["operation"]=> string(25) "checkRegisterAvailability" ["ip"]=> string(7) "1.1.1.1" } ["reply"]=> object(SimpleXMLElement)#3 (3) { ["code"]=> string(3) "300" ["detail"]=> string(7) "success" ["available"]=> object(SimpleXMLElement)#4 (1) { ["domain"]=> object(SimpleXMLElement)#5 (2) { ["@attributes"]=> array(2) { ["price"]=> string(5) "11.79" ["premium"]=> string(1) "0" } [0]=> string(24) "nononononodneodneond.net" } } } }

preferences:
83.99 ms | 410 KiB | 5 Q