3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <dd class="params c-3"> <a href="/kuplyu">+</a> <a href="/kuplyu">+</a> <a href="/kuplyu">+</a> <br /> <strong> <a href="/prodam">strong text</a> </strong> <a href="/prodam/dacha">-</a>, <a href="/prodam/dom">-</a>, <a href="/prodam/kottedzh">-</a>, <a href="/prodam/taunhaus">-</a> <br /> <strong> <a href="/sdam">strong text</a> </strong> <a href="/sdam/dacha">-</a>, <a href="/sdam/dom">-</a>, <a href="/sdam/kottedzh">-</a>, <a href="/sdam/taunhaus">-</a> <br /> <a href="/snimu">+</a> <a href="/kuplyu">+</a> <a href="/kuplyu">+</a> </dd> XML ); foreach($xml->xpath('//*[not(self::strong)]/a[not(preceding::strong and following::br)]') as $a) { echo $a->attributes()->href; echo "\t"; echo (string)$a; echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
/kuplyu + /kuplyu + /kuplyu + /snimu + /kuplyu + /kuplyu +

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.63 ms | 401 KiB | 8 Q