3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s1 = <<<EOD This String is called „Foo“ or „Bar“ but could be formatted as &ldquor;Foo&#8220; or even &#8222;Bar&#x0201C; and many more combinations. EOD; $s2 = html_entity_decode($s1, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML5); $s3 = preg_replace( '/„(.*?)“/', '[quote=$1]', $s2 ); print_r($s3);
Output for git.master, git.master_jit, rfc.property-hooks
This String is called [quote=Foo] or [quote=Bar] but could be formatted as [quote=Foo] or even [quote=Bar] and many more combinations.

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:
141.83 ms | 405 KiB | 5 Q