3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=Array ( Array ( 'facebook' => 375, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 385, 'twitter' => 3326, 'email' => 3326 ), Array ( 'facebook' => 391, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 446, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 486, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 2, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 1, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 3, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 0, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 0, 'twitter' => 3276, 'email' => 3276 ), ); //print_r($array); //die(); //$fb=array_column($array, 'facebook'); $fb=array_map( function ($i) { return $i['modules'];},$array); print_r($fb);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "modules" in /in/AFiVk on line 72 Warning: Undefined array key "modules" in /in/AFiVk on line 72 Warning: Undefined array key "modules" in /in/AFiVk on line 72 Warning: Undefined array key "modules" in /in/AFiVk on line 72 Warning: Undefined array key "modules" in /in/AFiVk on line 72 Warning: Undefined array key "modules" in /in/AFiVk on line 72 Warning: Undefined array key "modules" in /in/AFiVk on line 72 Warning: Undefined array key "modules" in /in/AFiVk on line 72 Warning: Undefined array key "modules" in /in/AFiVk on line 72 Warning: Undefined array key "modules" in /in/AFiVk on line 72 Array ( [0] => [1] => [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] => )

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:
28.88 ms | 402 KiB | 8 Q