3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = <<<HTML <div class="tabs_container"> <ul class="tabs"> ##BEGINLOOP##gAs## <li><a href="#">##title##</a></li> ##ENDLOOP## </ul> ##BEGINLOOP##LI## <div class="tabs_content">##title## is ##content##</div> ##ENDLOOP## </div> HTML; $parts = preg_split('/(?:##BEGINLOOP##)([a-zA-Z]*)##(.+?)(?:##ENDLOOP##)/s', $subject, -1, PREG_SPLIT_DELIM_CAPTURE); var_dump($parts);
Output for git.master, git.master_jit, rfc.property-hooks
array(7) { [0]=> string(51) "<div class="tabs_container"> <ul class="tabs"> " [1]=> string(3) "gAs" [2]=> string(48) " <li><a href="#">##title##</a></li> " [3]=> string(11) " </ul> " [4]=> string(2) "LI" [5]=> string(66) " <div class="tabs_content">##title## is ##content##</div> " [6]=> string(7) " </div>" }

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:
39.24 ms | 405 KiB | 9 Q