3v4l.org

run code in 300+ PHP versions simultaneously
<?php $communityIds = array(array('community_id' => '123', 'community_org' => 'whatevs'), array( 'community_id' => '345', 'community_org' => 'and such'), array('community_id' =>'789', 'community_org' => 'and how')); $communities = array(); $communities[345] = 1; foreach($communityIds as $communityId) { unset($communities[$communityId['community_id']]); } print_r($communityIds); print_r($communities);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [community_id] => 123 [community_org] => whatevs ) [1] => Array ( [community_id] => 345 [community_org] => and such ) [2] => Array ( [community_id] => 789 [community_org] => and how ) ) Array ( )

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