3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array('N', 'N', 'Y', 'Y', 'Y', 'Y'), array('N', 'N', 'Y', 'Y', 'N', 'Y'), array('N', 'N', 'Y', 'Y', 'N', 'Y'), array('Y', 'Y', 'Y', 'Y', 'Y', 'Y'), ); $new = array(); $count = count($arr[0]); for ($i = 0; $i < $count; $i++) { $new[] = implode(',', array_column($arr, $i)); } print_r($new);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [0] => N,N,N,Y [1] => N,N,N,Y [2] => Y,Y,Y,Y [3] => Y,Y,Y,Y [4] => Y,N,N,Y [5] => Y,Y,Y,Y )

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:
28.73 ms | 405 KiB | 5 Q