3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr =[ 0 => [ 'id' => 11, 'title' => 't1' ], 1 => [ 'id' => 12, 'title' => 't2' ] ]; $fianl_array = array_combine(array_column($arr,'id'),$arr); print_r($fianl_array);
Output for rfc.property-hooks
Array ( [11] => Array ( [id] => 11 [title] => t1 ) [12] => Array ( [id] => 12 [title] => t2 ) )
Output for git.master, git.master_jit
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.

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:
59.9 ms | 1150 KiB | 4 Q