3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <Server> <Host>74.208.165.122</Host> <Port>21</Port> <Protocol>0</Protocol> <Type>0</Type> <Logontype>1</Logontype> <User>u52405838</User> <Pass>ebrandz1</Pass> <TimezoneOffset>0</TimezoneOffset> <PasvMode>MODE_DEFAULT</PasvMode> <MaximumMultipleConnections>0</MaximumMultipleConnections> <EncodingType>Auto</EncodingType> <Comments></Comments> <LocalDir></LocalDir> <RemoteDir></RemoteDir>Zukara.com </Server> </Servers> XML ); foreach($xml->xpath('//product[starts-with(Host/text(),"Shirt")]') as $product) { echo $product->Host; echo "\n"; echo $product->User; echo "\n"; echo $product->Pass; echo "\n<br>"; }
Output for git.master, git.master_jit
Warning: simplexml_load_string(): Entity: line 17: parser error : Extra content at the end of the document in /in/NJCPS on line 2 Warning: simplexml_load_string(): </Servers> in /in/NJCPS on line 2 Warning: simplexml_load_string(): ^ in /in/NJCPS on line 2 Fatal error: Uncaught Error: Call to a member function xpath() on bool in /in/NJCPS:22 Stack trace: #0 {main} thrown in /in/NJCPS on line 22
Process exited with code 255.
Output for rfc.property-hooks
Warning: simplexml_load_string(): Entity: line 17: parser error : Extra content at the end of the document in /in/NJCPS on line 2 Warning: simplexml_load_string(): </Servers> in /in/NJCPS on line 2 Warning: simplexml_load_string(): ^ in /in/NJCPS on line 2 Fatal error: Uncaught Error: Call to a member function xpath() on false in /in/NJCPS:22 Stack trace: #0 {main} thrown in /in/NJCPS on line 22
Process exited with code 255.

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:
49.02 ms | 401 KiB | 8 Q