3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <errors> <viewErrors> <viewError code="404">Can't finde requested file</viewError> <viewError code="405">Method not allowed</viewError> </viewErrors> </errors> XML; $_xml = new DOMDocument('1.0', 'utf-8'); $_xml -> load($x); $_xpath = new DOMXPath($_xml); echo $_xpath -> evaluate( '//viewError[@code="404"]' ) -> item(0) -> textContent;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: DOMDocument::load(): I/O warning : failed to load external entity "/<errors> <viewErrors> <viewError code="404">Can't finde requested file</viewError> <viewError code="405">Method not allowed</viewError> </viewErrors> </errors>" in /in/Jq3RO on line 12 Warning: Attempt to read property "textContent" on null in /in/Jq3RO on line 14

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:
42.11 ms | 402 KiB | 8 Q