3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <exp:Input xmlns:exp="http://xps.com"> <exp:serviceId>namesurname</exp:serviceId> <exp:data> <exp:xml>coded</exp:xml> </exp:data> </exp:Input> </soapenv:Body> </soapenv:Envelope>'; $content = str_replace(['soapenv:', 'exp:'], '', $content); $xml = new SimpleXMLElement($content); $serviceId = $xml->Body->Input->serviceId; echo $serviceId;
Output for git.master, git.master_jit, rfc.property-hooks
namesurname

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
91.53 ms | 405 KiB | 5 Q