3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $channelPlacementsArr = [ ['title' => 'Title 1', 'value' => 1], ['title' => 'Title 2', 'value' => 2], ['title' => 'Title 2', 'value' => 3] ]; $oldToNewPlacementColMap = [ 'text_ad_placement' => 'text_ad_channel_placement' , 'ad_fb_stat_text_ad_placement' => 'ad_fb_stat_text_ad_channel_placement' , 'text_ad_fb_stat_text_ad_placement' => 'text_ad_fb_stat_text_ad_channel_placement' , 'splits_recipe_placement' => 'splits_recipe_channel_placement' , 'aff_campaign_placement' => 'aff_campaign_channel_placement' , 'ad_keyword_stat_text_ad_placement' => 'ad_keyword_stat_text_ad_channel_placement' , 'ad_search_terms_stat_text_ad_placement' => 'ad_search_terms_stat_text_ad_channel_placement' ]; echo in_array('text_ad_channel_placement', $oldToNewPlacementColMap);
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
1