3v4l.org

run code in 300+ PHP versions simultaneously
<?php $collection = array( 0 => array ( 0 => '1002', //Push to new array1 1 => '1003' //Push to new array2 ), 1 => array( 0 => '7', //Push to new array1 1 => '7' //Push to new array2 ), 2 => array( 0 => 'This is my first comment in the box', //Push to new array1 1 => '1This is my first comment in the box' //Push to new array2 ), 3 => array( 0 => '2014-01-01 01:16:05', //Push to new array1 1 => '2014-01-01 01:16:05' //Push to new array2 ) ); $collection = array( array_column($collection, 0), array_column($collection, 1) ); var_dump($collection);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(4) { [0]=> string(4) "1002" [1]=> string(1) "7" [2]=> string(35) "This is my first comment in the box" [3]=> string(19) "2014-01-01 01:16:05" } [1]=> array(4) { [0]=> string(4) "1003" [1]=> string(1) "7" [2]=> string(36) "1This is my first comment in the box" [3]=> string(19) "2014-01-01 01:16:05" } }

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