3v4l.org

run code in 300+ PHP versions simultaneously
<?php $links = [ "https://www.facebook.com/tr?id=13046212397316299911&amp;ev=pageview&amp;noscript=1", "https://www.facebook.com/pages/something", "https://www.facebook.com/groups/something/", "https://www.facebook.com/something" ]; $pattern = '~^https://www\.facebook\.[a-z.]+/(?:pages/|groups/)?[^?\s]+$~'; foreach ($links as $link) { if ($matchesFound = preg_match($pattern, $link, $matches)) { if ($matchesFound) { print_r($matches[0] . PHP_EOL); } } }
Output for git.master, git.master_jit, rfc.property-hooks
https://www.facebook.com/pages/something https://www.facebook.com/groups/something/ https://www.facebook.com/something

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