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]); }
Output for git.master_jit, git.master
Parse error: syntax error, unexpected single-quoted string "tmp_name", expecting ")" in /in/AO06k on line 16
Process exited with code 255.

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:
164.62 ms | 1394 KiB | 9 Q