3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tables = [ 'Address' => 'address', 'Agent' => 'agent', 'AgentType' => 'agent_type', 'BoughtServiceVariant' => 'bought_service_variant', 'Brigade' => 'brigade', 'Communication' => 'communication', 'CommunicationMessage' => 'communication_message', 'CommunicationRelation' => 'communication_relation', 'Company' => 'company', 'CompanyOffice' => 'company_office', 'companyoffice_contact' => 'company_office_contact', 'CompanyOwnership' => 'company_ownership', 'CompanySize' => 'company_size', 'CompanyType' => 'company_type', 'Contact' => 'contact', 'ContactType' => 'contact_type', 'Contract' => 'contract', 'Country' => 'country', 'Currency' => 'currency', 'DenyReason' => 'deny_reason', 'Duty' => 'duty', 'EducationLevel' => 'education_level', 'Event' => 'event', 'ExperienceLevel' => 'experience_level', 'Feedback' => 'feedback', 'FeedbackType' => 'feedback_type', 'Folder' => 'folder', 'FolderItem' => 'folder_item', 'Gender' => 'gender', 'Intro' => 'intro', 'IntroStep' => 'intro_step', 'Label' => 'label', 'Language' => 'language', 'LanguageLevel' => 'language_level', 'Location' => 'location', 'Notification' => 'notification', 'NotificationType' => 'notification_type', 'OpeningHours' => 'opening_hours', 'Page' => 'page', 'PageService' => 'page_service', 'PageUrlParameter' => 'page_url_parameter', 'Portfolio' => 'portfolio', 'PortfolioGroup' => 'portfolio_group', 'PortfolioItem' => 'portfolio_item', 'Profession' => 'profession', 'ReleaseState' => 'release_state', 'Resume' => 'resume', 'ResumeCertificate' => 'resume_certificate', 'ResumeEducation' => 'resume_education', 'ResumeExperience' => 'resume_experience', 'ResumeLanguage' => 'resume_language', 'ResumeSkill' => 'resume_skill', 'SearchInterval' => 'search_interval', 'Service' => 'service', 'ServiceCountry' => 'service_country', 'ServicePack' => 'service_pack', 'ServicePackPrice' => 'service_pack_price', 'servicepack_servicevariant' => 'service_pack_service_variant', 'ServicePrice' => 'service_price', 'ServiceVariant' => 'service_variant', 'Setting' => 'setting', 'SkillLevel' => 'skill_level', 'Specification' => 'specification', 'Test' => 'test', 'Tooltip' => 'tooltip', 'UsedServiceVariant' => 'used_service_variant', 'User' => 'user', 'UserRole' => 'user_role', 'user_userrole' => 'user_user_role', 'Vacancy' => 'vacancy', 'VacancyBlock' => 'vacancy_block', 'VisitLog' => 'visit_log', 'Voucher' => 'voucher', 'VoucherItem' => 'voucher_item', 'Widget' => 'widget', 'WidgetArea' => 'widget_area' ]; $data = []; foreach ($tables as $old => $new) { $data[] = "[\n\t'oldName' => '$old',\n\t'newName' => '$new',\n\t'columns' => [\n\t\t\n\t]"; } echo implode(",\n", $data);

preferences:
42.64 ms | 402 KiB | 5 Q