3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userfile = array( 'name' => array ( 'everybodytalkings.jpg', 'glove.png' ), 'type' => array ( 'image/jpeg', 'image/png' ), 'tmp_name' => array ( '/home/christiant.wi8/tmp/phpNmvGeZ', '/home/christiant.wi8/tmp/phpGjsRrl' ), 'error' => array ( '0', '0' ), 'size' => array ( '65188', '75182' ), ); $new = array(); foreach($userfile as $key => $item) { $new['userfile1'][] = array($key, $item[0]); $new['userfile2'][] = array($key, $item[1]); } print_r($new);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [userfile1] => Array ( [0] => Array ( [0] => name [1] => everybodytalkings.jpg ) [1] => Array ( [0] => type [1] => image/jpeg ) [2] => Array ( [0] => tmp_name [1] => /home/christiant.wi8/tmp/phpNmvGeZ ) [3] => Array ( [0] => error [1] => 0 ) [4] => Array ( [0] => size [1] => 65188 ) ) [userfile2] => Array ( [0] => Array ( [0] => name [1] => glove.png ) [1] => Array ( [0] => type [1] => image/png ) [2] => Array ( [0] => tmp_name [1] => /home/christiant.wi8/tmp/phpGjsRrl ) [3] => Array ( [0] => error [1] => 0 ) [4] => Array ( [0] => size [1] => 75182 ) ) )

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:
36.9 ms | 404 KiB | 8 Q