3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Body> <FlagSeatsViaXmlRequestResponse xmlns="http://www.rodrigue.fr/"> <FlagSeatsViaXmlRequestResult> <root basketid="772" creationdate="20140514 14:36:58"> <flagarea sessionid="421" eventid="100" sectionid="180001" zoneid="180001" floorid="180001" categoryid="180001" formulaid="1"> <bloccontigue> <flagseat iindex="218" entree_id="904" pos_x="28" pos_y="20" rank="B" seat="5" denomination="FAUTEUIL" priceid="4410026" mailingproductid="0" gpid="7935" vtsId="50" UnitPriceInCents="1950"/> <flagseat iindex="231" entree_id="915" pos_x="29" pos_y="20" rank="B" seat="7" denomination="FAUTEUIL" priceid="4410026" mailingproductid="0" gpid="7935" vtsId="50" UnitPriceInCents="1950"/> </bloccontigue> </flagarea> <flagarea sessionid="423" eventid="207" sectionid="180001" zoneid="180001" floorid="180001" categoryid="180001" formulaid="1"> <bloccontigue> <flagseat iindex="230" entree_id="561" pos_x="29" pos_y="19" rank="C" seat="7" denomination="FAUTEUIL" priceid="4410026" mailingproductid="0" gpid="7650" vtsId="61" UnitPriceInCents="1950"/> <flagseat iindex="241" entree_id="572" pos_x="30" pos_y="19" rank="C" seat="9" denomination="FAUTEUIL" priceid="4410026" mailingproductid="0" gpid="7650" vtsId="61" UnitPriceInCents="1950"/> </bloccontigue> </flagarea> <flagarea sessionid="117" eventid="94" sectionid="170001" zoneid="170001" floorid="0" categoryid="170001" formulaid="1"> <bloccontigue> <flagseat iindex="1020" entree_id="916" pos_x="62" pos_y="42" rank="S" seat="21" denomination="FAUTEUIL" priceid="4410026" mailingproductid="0" gpid="7651" vtsId="112" UnitPriceInCents="1950"/> <flagseat iindex="1047" entree_id="943" pos_x="63" pos_y="42" rank="S" seat="23" denomination="FAUTEUIL" priceid="4410026" mailingproductid="0" gpid="7651" vtsId="112" UnitPriceInCents="1950"/> </bloccontigue> </flagarea> <flagarea sessionid="155" eventid="120" sectionid="170001" zoneid="170001" floorid="0" categoryid="170001" formulaid="1"> <bloccontigue> <flagseat iindex="1043" entree_id="939" pos_x="63" pos_y="24" rank="C" seat="17" denomination="FAUTEUIL" priceid="4410026" mailingproductid="0" gpid="7625" vtsId="66" UnitPriceInCents="1950"/> <flagseat iindex="1070" entree_id="966" pos_x="64" pos_y="24" rank="C" seat="19" denomination="FAUTEUIL" priceid="4410026" mailingproductid="0" gpid="7625" vtsId="66" UnitPriceInCents="1950"/> </bloccontigue> </flagarea> <mailingproducts /> </root> </FlagSeatsViaXmlRequestResult> </FlagSeatsViaXmlRequestResponse> </soap:Body></soap:Envelope> XML; $response = simplexml_load_string($xml); var_dump($response->getNamespaces(true));
Output for 5.1.2 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
array(2) { ["soap"]=> string(39) "http://www.w3.org/2003/05/soap-envelope" [""]=> string(23) "http://www.rodrigue.fr/" }
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.1
Fatal error: Call to undefined method SimpleXMLElement::getNamespaces() in /in/0LUVP on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/0LUVP on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/0LUVP on line 6
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: simplexml_load_string() in /in/0LUVP on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/0LUVP on line 6

preferences:
312.41 ms | 401 KiB | 456 Q