3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '/* name for an item that is duplicated in the UI, based on the original name / "%@ (Copy)" = "%@ (kopi)"; / display name for a book page template that is the first page of that section / "%@ (First)" = "%@ (Første)"; / display name for a book page template that represents a hardcover cover. the second argument is the cover type. */ "%@ (Hardcover, %@)" = "%1$@ (Hard innbinding, %2$@)";'; preg_match_all('#"([^"]+)"\s*=\s*"([^"]+)";#', $text, $match); $translate = array_combine($match[1], $match[2]); print_r($translate);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [%@ (Copy)] => %@ (kopi) [%@ (First)] => %@ (Første) [%@ (Hardcover, %@)] => %1$@ (Hard innbinding, %2$@) )

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:
45.79 ms | 401 KiB | 8 Q