3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<HTML <b>Atmosp'Hair, Caroline Michellod</b><i> in <a href="1" target="_top">Leytron</a></i>, Einzelunt., <a href="1" target="result">+++</a>, <a href="google.com" target="_blank">CHE-137.645.261</a><a href="pdf" target="_blank">Download pdf</a> <b>Bar La Gouttière, Y. Maret</b><i> in <a href="http://www.example.com">Dolor</a><a href="2" target="_top">Martigny</a></i>, Einzelunt., <a href="2" target="result">+++</a>, <a href="yahoo.com" target="_blank">CHE-112.712.556</a><a href="http:/wwww.coocc.com">Doloo</a> <b>Catherine Michellod</b><i> in <a href="3" target="_top">Bagnes</a></i>, Einzelunt., <a href="3" target="result">+</a>, <a href="bing.com" target="_blank">CHE-111.755.770</a><a href="pdf" target="_blank">Download pdf</a> HTML; preg_match_all("/<.*?href=\"([^\"]*)\"[^>]*>(CHE[^<]*)<[^>]*>/", $str, $m); $result = array_map(function($link, $name){ return ["link" => $link, "name" => $name]; }, $m[1], $m[2]); print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [link] => google.com [name] => CHE-137.645.261 ) [1] => Array ( [link] => yahoo.com [name] => CHE-112.712.556 ) [2] => Array ( [link] => bing.com [name] => CHE-111.755.770 ) )

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:
67 ms | 402 KiB | 8 Q