3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "https://www.instagram.com/p/BxKRx5CHn5i/", "https://www.instagram.com/p/BrODg5XHlE6/?utm_source=ig_share_sheet&igshid=znsinsart176", "https://www.instagram.com/p/BxKRx5CHn5i/", "https://www.instagram.com/username/p/BxE5PpZhoa9/", "https://www.instagram.com/username/p/BxE5PpZhoa9/#look=overhere" ]; foreach ($strings as $string) { $pos = strpos($string, '/p/'); if ($pos === false) { continue; } echo substr($string, $pos + 3, 11); echo " (from $string)\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
BxKRx5CHn5i (from https://www.instagram.com/p/BxKRx5CHn5i/) BrODg5XHlE6 (from https://www.instagram.com/p/BrODg5XHlE6/?utm_source=ig_share_sheet&igshid=znsinsart176) BxKRx5CHn5i (from https://www.instagram.com/p/BxKRx5CHn5i/) BxE5PpZhoa9 (from https://www.instagram.com/username/p/BxE5PpZhoa9/) BxE5PpZhoa9 (from https://www.instagram.com/username/p/BxE5PpZhoa9/#look=overhere)

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