3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $status_tag = array('In Queue' =>'NA','ON CALL' =>'NA','Attempting Contact'=>'AC - Gate Keeper,AC - Invalid Number,AC - Left VM - Call Back,AC - Mailbox Full/ No option to leave VM,AC - Phone rings no answer,AC - Rescheduled by Agent','In Progress'=>'IP - Advertiser not Available (Travelling On Holiday),IP - Advertiser Not Aware of the Appointment,IP - Advertiser Not Aware of the requirements for Implementation,IP - Awaiting Conversion value on ICS/ Screenshot from Advertiser,IP - Code Sent,IP - Code sent Advertiser implemented incorrectly,IP - Communication via email,IP - Multiple Rescheduled Appointment,IP - No Web Access,IP - Owner Approval For Implementation,IP - Regalix Delay,IP - Regalix FollowUp,IP - Rescheduled by Advertiser,IP - Webmaster Delay,IP - Webmaster is not located in the Country,IP - Website under-construction (For the Current quarter),IP - Advertiser To Implement the Code in 2-3 Weeks','Pending qc - win / Implemented'=>'NA','Implemented'=>'NA','Pending qc - in active / In-active'=>'NA','Pending QC - In Active'=>'IL - Code already implemented by the advertiser,IL - Code Sent but no response,IL - Invalid Contact Details,IL - No Response,IL - Not Interested,IL - No Web Access,IL - Query / Troubleshooting - Provided Solution,IL - Redesigning Website,IL - Reschedule but No Response,IL - Technically Unfeasible,IL - Duplicate - Lead via gCase,IL - Account Suspended/Inactive (TAG Leads),IL - Troubleshooting / Rejected','In Active'=>'IL - Code already implemented by the advertiser,IL - Code Sent but no response,IL - Invalid Contact Details,IL - No Response,IL - Not Interested,IL - No Web Access,IL - Query / Troubleshooting - Provided Solution,IL - Redesigning Website,IL - Reschedule but No Response,IL - Technically Unfeasible,IL - Duplicate - Lead via gCase,IL - Account Suspended/Inactive (TAG Leads),IL - Troubleshooting / Rejected','Rework Required - WIN'=>'NA','Rework Required - Inactive'=>'RR - Inactive,RR - Invalid Implementation,RR - Process','Rework Fixed - WIN'=>'NA','Rework Fixed - Inactive'=>'NA'); $status_shop= array('In Queue' =>'NA','ON CALL' =>'NA','Attempting Contact'=>'AC - Gate Keeper,AC - Invalid Number,AC - Left VM - Call Back,AC - Phone rings but No Answer','In Progress'=>'IP - Account Suspended,IP - Advertiser at Work,IP - Advertiser Unreachable,IP - Awaiting Impressions,IP - Campaign Paused,IP - Data Quality Errors,IP - Installing an Extension/Creating a Landing Page,IP - No Admin Access,IP - POLICY ISSUES,IP - Rescheduled by Advertiser,IP - Waiting for website verification','Pending qc - win / Implemented'=>'NA','Implemented'=>'IM - WIN (Impressions Received),IM - WIN > Troubleshooting (Complex),IM - WIN - Troubleshooting(Basics)','Pending qc - in active / In-active'=>'NA','Pending QC - In Active'=>'DL - Account Suspended post Regalix Implementation,DL - Account suspended when the lead was submitted.,DL - Already Active,DL - Campaign Paused,DL - Invalid contact Details,DL - Lack of time/resources,DL - No access / No Website Credentials,DL - No response,DL - Not Interested,DL - Policy Issues,DL - Redesigning Website,DL - Technically unfeasible,DL - Troubleshooting','In Active'=>'DL - Account Suspended post Regalix Implementation,DL - Account suspended when the lead was submitted.,DL - Already Active,DL - Campaign Paused,DL - Invalid contact Details,DL - Lack of time/resources,DL - No access / No Website Credentials,DL - No response,DL - Not Interested,DL - Policy Issues,DL - Redesigning Website,DL - Technically unfeasible,DL - Troubleshooting','Rework Required - WIN'=>'NA','Rework Required - Inactive'=>'NA','Rework Fixed - WIN'=>'NA','Rework Fixed - Inactive'=>'NA'); $ar = array_intersect_assoc($status_tag,$status_shop); print_r($ar); ?>
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
Array ( [In Queue] => NA [ON CALL] => NA [Pending qc - win / Implemented] => NA [Pending qc - in active / In-active] => NA [Rework Required - WIN] => NA [Rework Fixed - WIN] => NA [Rework Fixed - Inactive] => NA )