3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "<iframe class=\"elementor-video-iframe\" allowfullscreen src=\"https://player.vimeo.com/video/972057159?autoplay=1&amp;color&amp;autopause=0&amp;loop=0&amp;muted=0&amp;title=0&amp;portrait=0&amp;byline=0#t=\"></iframe>"; $document = new DOMDocument(); $document->loadHTML($html); $xpath = new DOMXpath($document); $url = $xpath->evaluate('string(//iframe[@class="elementor-video-iframe"]/@src)'); var_dump(preg_replace('([?#].*$)', '', $url)); var_dump(parse_url($url));
Output for git.master, git.master_jit, rfc.property-hooks
string(40) "https://player.vimeo.com/video/972057159" array(5) { ["scheme"]=> string(5) "https" ["host"]=> string(16) "player.vimeo.com" ["path"]=> string(16) "/video/972057159" ["query"]=> string(71) "autoplay=1&color&autopause=0&loop=0&muted=0&title=0&portrait=0&byline=0" ["fragment"]=> string(2) "t=" }

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:
110.54 ms | 406 KiB | 5 Q