3v4l.org

run code in 300+ PHP versions simultaneously
<?php array( 0 => array( "a" => "r1", "b" => "c1", "c" => "d1", ), 1 => array( "a" => "r1", "b" => "c1", "c" => "d2", ), 2 => array( "a" => "r1", "b" => "c1", "c" => "d3", ), 3 => array( "a" => "r1", "b" => "c2", "c" => "d1", ), 4 => array( "a" => "r1", "b" => "c2", "c" => "d3", ), 5 => array( "a" => "r1", "b" => "c3", "c" => "d1", ) ); $count = 0; for($i=1; $i<=3; $i++){ for($j=1; $j<=3; $j++){ $data[$count] = array( 'a' => '', 'b' => 'D'.$j, 'c' => 'C'.$i ); for($r=0; $r<9; $r++){ if(isset($rows[$r]) && $rows[$r]['b'] == 'C'.$i && $rows[$r]['c'] == 'D'.$j) { $data[$count] = array( 'a' => $rows[$r]['a'], 'b' => $rows[$r]['b'], 'c' => $rows[$r]['c'] ); } } $count++; } }
Output for git.master, git.master_jit, rfc.property-hooks

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.08 ms | 401 KiB | 8 Q