3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = array ( 'name' => array ( 0 => 'Image.PNG', 1 => 'sadssadsa.PNG', ), 'type' => array ( 0 => 'image/png', 1 => 'image/png', ), 'tmp_name' => array ( 0 => 'C:\\Users\\CH MANAN\\AppData\\Local\\Temp\\php48B6.tmp', 1 => 'C:\\Users\\CH MANAN\\AppData\\Local\\Temp\\php48B7.tmp', ), 'error' => array ( 0 => '0', 1 => '0', ), 'size' => array ( 0 => '291647', 1 => '112790', ), ); //foreach($_FILES as $file) { $keys = array_keys($file); foreach($file['name'] as $key => $f){ $new[] = array_combine($keys, array_column($file, $key)); } //} var_dump($new);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(5) { ["name"]=> string(9) "Image.PNG" ["type"]=> string(9) "image/png" ["tmp_name"]=> string(48) "C:\Users\CH MANAN\AppData\Local\Temp\php48B6.tmp" ["error"]=> string(1) "0" ["size"]=> string(6) "291647" } [1]=> array(5) { ["name"]=> string(13) "sadssadsa.PNG" ["type"]=> string(9) "image/png" ["tmp_name"]=> string(48) "C:\Users\CH MANAN\AppData\Local\Temp\php48B7.tmp" ["error"]=> string(1) "0" ["size"]=> string(6) "112790" } }

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:
81.93 ms | 407 KiB | 5 Q