3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [ [ "Phone", "Sum", "Name", "Something else" ], [ "+1 555123456", "50.00", "John doe", "100.50" ], [ "911", "20.12", "Eli the Computer Guy", "99.99" ] ]; $headers = array_shift($arrays); $result = array_map(function($x) use ($headers){ return array_combine($headers, $x); }, $arrays); print_r($result);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [0] => Array ( [Phone] => +1 555123456 [Sum] => 50.00 [Name] => John doe [Something else] => 100.50 ) [1] => Array ( [Phone] => 911 [Sum] => 20.12 [Name] => Eli the Computer Guy [Something else] => 99.99 ) )

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:
32.63 ms | 406 KiB | 5 Q