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; preg_match_all('/(?:##BEGINLOOP##)([a-zA-Z]*)##(.+?)(?:##ENDLOOP##)/s', $subject, $matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(2) { [0]=> string(77) "##BEGINLOOP##gAs## <li><a href="#">##title##</a></li> ##ENDLOOP##" [1]=> string(94) "##BEGINLOOP##LI## <div class="tabs_content">##title## is ##content##</div> ##ENDLOOP##" } [1]=> array(2) { [0]=> string(3) "gAs" [1]=> string(2) "LI" } [2]=> array(2) { [0]=> string(48) " <li><a href="#">##title##</a></li> " [1]=> string(66) " <div class="tabs_content">##title## is ##content##</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:
41.19 ms | 402 KiB | 8 Q