3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/url(\(((?:[^()]+|(?1))+)\))/m'; $str = 'url(https://exemples.com/fonts/lato/lato/lato-regular-webfont.ttf) src:url(https://exemples.com/fonts/lato/lato-regular-webfont.eot?#iefix) background:url(https://exemples.com/product/header/img.png) background:url(/product/header/img.png) background:url("/product/header/img.png") background:url(\'/product/header/img.png\') background:url(/uploads/2019/03/0002-image(thumbnail_product).jpg) .card-thumb__img1{display:block;width:142px;height:62px;background:url(https://example.com/product01.jpg) center center no-repeat;background-size:contain}@media (max-width:1029px).card-thumb__img2{display:block;z-index:1;background:url(https://example.com/product02.jpg) center center no-repeat #000; background-image: url(/uploads/2019/03/product01-image(thumbnail_photo).jpg); '; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); foreach ($matches as $match) { if (preg_match('/^([\'"]?)[^"]+\1$/', $match[2])) { echo trim($match[2], "'\"") . PHP_EOL; } }
Output for git.master, git.master_jit, rfc.property-hooks
https://exemples.com/fonts/lato/lato/lato-regular-webfont.ttf https://exemples.com/fonts/lato/lato-regular-webfont.eot?#iefix https://exemples.com/product/header/img.png /product/header/img.png /product/header/img.png /product/header/img.png /uploads/2019/03/0002-image(thumbnail_product).jpg https://example.com/product01.jpg https://example.com/product02.jpg /uploads/2019/03/product01-image(thumbnail_photo).jpg

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