3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 0 => [ "id" => 2, "title" => "Test", "alt_text" => 'This is test', ], 1 => [ "id" => 3, "title" => "Test1", "alt_text" => 'This is test1', ], 2 => [ "id" => 7, "title" => "Test2", "alt_text" => "This is test2", ], ]; $temp = array_column($arr, 'title', 'id'); echo $temp[2]; // will result Test
Output for git.master, git.master_jit, rfc.property-hooks
Test

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:
31.87 ms | 1408 KiB | 4 Q