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);
Output for git.master, git.master_jit, rfc.property-hooks
'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'

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.06 ms | 409 KiB | 8 Q