3v4l.org

run code in 500+ PHP versions simultaneously
<?php $team = [ ['image' => 'A.jpg', 'fname' => 'B', 'lname' => 'C', 'position' => 'D'], ['image' => 'E.jpg', 'fname' => 'F', 'lname' => 'G', 'position' => 'H'], ['image' => 'I.jpg', 'fname' => 'J', 'lname' => 'K', 'position' => 'L'] ]; $pairs = array_chunk($team, 2); foreach ($pairs as $pair) { echo "<div class=\"row\">\n"; foreach ($pair as $player) { echo "\t<div class=\"col s12 m6 grid\">\n"; echo "\t\t<figure class=\"effect-honey\">\n"; echo "\t\t\t<img src=\"{$player['image']}\" alt=\"{$player['fname']} {$player['lname']}\"/>\n"; echo "\t\t\t<figcaption>\n"; echo "\t\t\t\t<h2>{$player['fname']}<span>{$player['lname']}</span> <i>{$player['position']}</i></h2>\n"; echo "\t\t\t</figcaption>\n"; echo "\t\t</figure>\n"; echo "\t</div>\n"; } echo "</div>\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
<div class="row"> <div class="col s12 m6 grid"> <figure class="effect-honey"> <img src="A.jpg" alt="B C"/> <figcaption> <h2>B<span>C</span> <i>D</i></h2> </figcaption> </figure> </div> <div class="col s12 m6 grid"> <figure class="effect-honey"> <img src="E.jpg" alt="F G"/> <figcaption> <h2>F<span>G</span> <i>H</i></h2> </figcaption> </figure> </div> </div> <div class="row"> <div class="col s12 m6 grid"> <figure class="effect-honey"> <img src="I.jpg" alt="J K"/> <figcaption> <h2>J<span>K</span> <i>L</i></h2> </figcaption> </figure> </div> </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:
45.05 ms | 2125 KiB | 4 Q