3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonPartenaires = json_decode('{ "logo": ["images/website_logo_1.png","images/website_logo_2.png","images/website_logo_3.png"], "url_partenaire": ["","https://www.url_website_2.fr",""] }', true); foreach ($jsonPartenaires['logo'] as $i => $logo) { $html = sprintf('<img src="%s">', $logo); if ($jsonPartenaires['url_partenaire'][$i]) { $html = sprintf( '<a href="%s">%s</a>', $jsonPartenaires['url_partenaire'][$i], $html ); } echo $html . "<br>"; }
Output for git.master, git.master_jit, rfc.property-hooks
<img src="images/website_logo_1.png"><br><a href="https://www.url_website_2.fr"><img src="images/website_logo_2.png"></a><br><img src="images/website_logo_3.png"><br>

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:
132.16 ms | 405 KiB | 5 Q