3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<iframe src="http://player.vimeo.com/video/34134823?title=0&amp;byline=0" width="900" height="506" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'; $doc = new DOMDocument(); libxml_use_internal_errors(true); $doc->loadHTML($str); $xpath = new DOMXPath($doc); echo basename(parse_url($xpath->evaluate('string(//iframe/@src)'), PHP_URL_PATH));
Output for git.master, git.master_jit, rfc.property-hooks
34134823

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:
102.21 ms | 405 KiB | 5 Q