3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = Array ( 0 => Array ('id' => 1, 'check' => ''), 1 => Array ('id' => 2, 'check' => ''), 2 => Array ('id' => 3, 'check' => 'on'), 3 => Array ('id' => 4, 'check' => ''), 4 => Array ('id' => 5, 'check' => ''), ); $i=0; foreach ($data as $value) { if (($i % 2) === 0) { echo "<div class='row'>"; } echo '<span>'.$value['id'].'</span>'; if (($i % 2) === 1) { echo "</div>"; } $i++;}
Output for git.master, git.master_jit, rfc.property-hooks
<div class='row'><span>1</span><span>2</span></div><div class='row'><span>3</span><span>4</span></div><div class='row'><span>5</span>

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:
66.34 ms | 401 KiB | 8 Q