3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tables = [ [ 'oldName' => 'Address', 'newName' => 'address', ], [ 'oldName' => 'Agent', 'newName' => 'agent', ], [ 'oldName' => 'AgentType', 'newName' => 'agent_type', ], [ 'oldName' => 'BoughtServiceVariant', 'newName' => 'bought_service_variant', ], [ 'oldName' => 'Brigade', 'newName' => 'brigade', ], [ 'oldName' => 'Communication', 'newName' => 'communication', ], [ 'oldName' => 'CommunicationMessage', 'newName' => 'communication_message', ], [ 'oldName' => 'CommunicationRelation', 'newName' => 'communication_relation', ], [ 'oldName' => 'Company', 'newName' => 'company', ], [ 'oldName' => 'CompanyOffice', 'newName' => 'company_office', ], [ 'oldName' => 'companyoffice_contact', 'newName' => 'company_office_contact', ], [ 'oldName' => 'CompanyOwnership', 'newName' => 'company_ownership', ], [ 'oldName' => 'CompanySize', 'newName' => 'company_size', ], [ 'oldName' => 'CompanyType', 'newName' => 'company_type', ], [ 'oldName' => 'Contact', 'newName' => 'contact', ], [ 'oldName' => 'ContactType', 'newName' => 'contact_type', ], [ 'oldName' => 'Contract', 'newName' => 'contract', ], [ 'oldName' => 'Country', 'newName' => 'country', ], [ 'oldName' => 'Currency', 'newName' => 'currency', ], [ 'oldName' => 'DenyReason', 'newName' => 'deny_reason', ], [ 'oldName' => 'Duty', 'newName' => 'duty', ], [ 'oldName' => 'EducationLevel', 'newName' => 'education_level', ], [ 'oldName' => 'Event', 'newName' => 'event', ], [ 'oldName' => 'ExperienceLevel', 'newName' => 'experience_level', ], [ 'oldName' => 'Feedback', 'newName' => 'feedback', ], [ 'oldName' => 'FeedbackType', 'newName' => 'feedback_type', ], [ 'oldName' => 'Folder', 'newName' => 'folder', ], [ 'oldName' => 'FolderItem', 'newName' => 'folder_item', ], [ 'oldName' => 'Gender', 'newName' => 'gender', ], [ 'oldName' => 'Intro', 'newName' => 'intro', ], [ 'oldName' => 'IntroStep', 'newName' => 'intro_step', ], [ 'oldName' => 'Label', 'newName' => 'label', ], [ 'oldName' => 'Language', 'newName' => 'language', ], [ 'oldName' => 'LanguageLevel', 'newName' => 'language_level', ], [ 'oldName' => 'Location', 'newName' => 'location', ], [ 'oldName' => 'Notification', 'newName' => 'notification', ], [ 'oldName' => 'NotificationType', 'newName' => 'notification_type', ], [ 'oldName' => 'OpeningHours', 'newName' => 'opening_hours', ], [ 'oldName' => 'Page', 'newName' => 'page', ], [ 'oldName' => 'PageService', 'newName' => 'page_service', ], [ 'oldName' => 'PageUrlParameter', 'newName' => 'page_url_parameter', ], [ 'oldName' => 'Portfolio', 'newName' => 'portfolio', ], [ 'oldName' => 'PortfolioGroup', 'newName' => 'portfolio_group', ], [ 'oldName' => 'PortfolioItem', 'newName' => 'portfolio_item', ], [ 'oldName' => 'Profession', 'newName' => 'profession', ], [ 'oldName' => 'ReleaseState', 'newName' => 'release_state', ], [ 'oldName' => 'Resume', 'newName' => 'resume', ], [ 'oldName' => 'ResumeCertificate', 'newName' => 'resume_certificate', ], [ 'oldName' => 'ResumeEducation', 'newName' => 'resume_education', ], [ 'oldName' => 'ResumeExperience', 'newName' => 'resume_experience', ], [ 'oldName' => 'ResumeLanguage', 'newName' => 'resume_language', ], [ 'oldName' => 'ResumeSkill', 'newName' => 'resume_skill', ], [ 'oldName' => 'SearchInterval', 'newName' => 'search_interval', ], [ 'oldName' => 'Service', 'newName' => 'service', ], [ 'oldName' => 'ServiceCountry', 'newName' => 'service_country', ], [ 'oldName' => 'ServicePack', 'newName' => 'service_pack', ], [ 'oldName' => 'ServicePackPrice', 'newName' => 'service_pack_price', ], [ 'oldName' => 'servicepack_servicevariant', 'newName' => 'service_pack_service_variant', ], [ 'oldName' => 'ServicePrice', 'newName' => 'service_price', ], [ 'oldName' => 'ServiceVariant', 'newName' => 'service_variant', ], [ 'oldName' => 'Setting', 'newName' => 'setting', ], [ 'oldName' => 'SkillLevel', 'newName' => 'skill_level', ], [ 'oldName' => 'Specification', 'newName' => 'specification', ], [ 'oldName' => 'Test', 'newName' => 'test', ], [ 'oldName' => 'Tooltip', 'newName' => 'tooltip', ], [ 'oldName' => 'UsedServiceVariant', 'newName' => 'used_service_variant', ], [ 'oldName' => 'User', 'newName' => 'user', ], [ 'oldName' => 'UserRole', 'newName' => 'user_role', ], [ 'oldName' => 'user_userrole', 'newName' => 'user_user_role', ], [ 'oldName' => 'Vacancy', 'newName' => 'vacancy', ], [ 'oldName' => 'VacancyBlock', 'newName' => 'vacancy_block', ], [ 'oldName' => 'VisitLog', 'newName' => 'visit_log', ], [ 'oldName' => 'Voucher', 'newName' => 'voucher', ], [ 'oldName' => 'VoucherItem', 'newName' => 'voucher_item', ], [ 'oldName' => 'Widget', 'newName' => 'widget', ], [ 'oldName' => 'WidgetArea', 'newName' => 'widget_area', ] ]; $data = []; foreach ($tables as $table) { $data[] = "'$table[oldName]' => '$table[newName]'"; } echo implode(",\n", $data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/Qjvav
function name:  (null)
number of ops:  21
compiled vars:  !0 = $tables, !1 = $data, !2 = $table
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
  310     1        ASSIGN                                                   !1, <array>
  311     2      > FE_RESET_R                                       $5      !0, ->14
          3    > > FE_FETCH_R                                               $5, !2, ->14
  312     4    >   ROPE_INIT                                     5  ~10     '%27'
          5        FETCH_DIM_R                                      ~7      !2, 'oldName'
          6        ROPE_ADD                                      1  ~10     ~10, ~7
          7        ROPE_ADD                                      2  ~10     ~10, '%27+%3D%3E+%27'
          8        FETCH_DIM_R                                      ~8      !2, 'newName'
          9        ROPE_ADD                                      3  ~10     ~10, ~8
         10        ROPE_END                                      4  ~9      ~10, '%27'
         11        ASSIGN_DIM                                               !1
         12        OP_DATA                                                  ~9
  311    13      > JMP                                                      ->3
         14    >   FE_FREE                                                  $5
  315    15        INIT_FCALL                                               'implode'
         16        SEND_VAL                                                 '%2C%0A'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $13     
         19        ECHO                                                     $13
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.99 ms | 1395 KiB | 15 Q