3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array( 'name' => 'Tanaka', 'skill' => 'A', ), array( 'name' => 'Yamada', 'skill' => 'B', ), array( 'name' => 'SAITO', 'skill' => 'C', ), array( 'name' => 'HIGASHIYAMA', 'skill' => 'D', ), array( 'name' => 'ARAKI', 'skill' => 'E', ), array( 'name' => 'YOSHIDA', 'skill' => 'F', ), ); $count = count($data); $table = call_user_func_array( 'array_merge', array_map( function ($group) { return call_user_func_array( 'array_map', array_merge(array(null), $group) ); }, array_chunk( $data + array_fill( 0, $count + $count % 4, array_fill(0, 2, '&nbsp;') ), 4 ) ) ); print_r($table);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => Tanaka [1] => Yamada [2] => SAITO [3] => HIGASHIYAMA ) [1] => Array ( [0] => A [1] => B [2] => C [3] => D ) [2] => Array ( [0] => ARAKI [1] => YOSHIDA [2] => &nbsp; [3] => &nbsp; ) [3] => Array ( [0] => E [1] => F [2] => &nbsp; [3] => &nbsp; ) )

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:
41.04 ms | 402 KiB | 8 Q