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++; } } print_r($data);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [a] => [b] => D1 [c] => C1 ) [1] => Array ( [a] => [b] => D2 [c] => C1 ) [2] => Array ( [a] => [b] => D3 [c] => C1 ) [3] => Array ( [a] => [b] => D1 [c] => C2 ) [4] => Array ( [a] => [b] => D2 [c] => C2 ) [5] => Array ( [a] => [b] => D3 [c] => C2 ) [6] => Array ( [a] => [b] => D1 [c] => C3 ) [7] => Array ( [a] => [b] => D2 [c] => C3 ) [8] => Array ( [a] => [b] => D3 [c] => C3 ) )

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:
68.07 ms | 403 KiB | 8 Q