3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 5.4.0 - 5.5.7
Parse error: syntax error, unexpected ''));' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/MYH90 on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/MYH90 on line 8
Process exited with code 255.