3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$files = glob("images/*.{gif,jpg,jpeg,png}", GLOB_BRACE); $files = [ 'foo.jpg', 'foo1.png', 'foo2.png', 'foo3.png', 'foo4.png', 'foo5.png', 'foo6.png', 'foo7.png', 'foo8.png', 'foo9.png', 'foo10.png' ]; foreach ($files as $key => $file) { if ($key % 3 == 0) { // change 3 to how many items between rows if ($key != 0) { echo '</div>'.PHP_EOL; } echo '<div class="row">'.PHP_EOL; } echo '<div class="column"><img src="'.$file.'" style=width:100% /></div>'.PHP_EOL; } ?> </div>
Output for git.master, git.master_jit, rfc.property-hooks
<div class="row"> <div class="column"><img src="foo.jpg" style=width:100% /></div> <div class="column"><img src="foo1.png" style=width:100% /></div> <div class="column"><img src="foo2.png" style=width:100% /></div> </div> <div class="row"> <div class="column"><img src="foo3.png" style=width:100% /></div> <div class="column"><img src="foo4.png" style=width:100% /></div> <div class="column"><img src="foo5.png" style=width:100% /></div> </div> <div class="row"> <div class="column"><img src="foo6.png" style=width:100% /></div> <div class="column"><img src="foo7.png" style=width:100% /></div> <div class="column"><img src="foo8.png" style=width:100% /></div> </div> <div class="row"> <div class="column"><img src="foo9.png" style=width:100% /></div> <div class="column"><img src="foo10.png" style=width:100% /></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:
52.22 ms | 403 KiB | 8 Q