3v4l.org

run code in 300+ PHP versions simultaneously
<?php // French // Result: 1À 2 3Ä 4Æ // Expect: 11 22 33 44 echo preg_replace(['à', 'â', 'ä', 'æ'], ['1', '2', '3', '4'], 'àÀ â äÄ æÆ') . PHP_EOL; // Result: à1 â2 ä3 æ4 // Expect: 11 22 33 44 echo preg_replace(['À', 'Â', 'Ä', 'Æ'], ['1', '2', '3', '4'], 'àÀ â äÄ æÆ') . PHP_EOL; // Russian // Result: 1Ё 2Й // Expect: 11 22 echo preg_replace(['ё', 'й'], ['1', '2'], 'ёЁ йЙ') . PHP_EOL; // Result: ё1 й2 // Expect: 11 22 echo preg_replace(['Ё', 'Й'], ['1', '2'], 'ёЁ йЙ') . PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_replace(): No ending delimiter '�' found in /in/H7q5a on line 6 Warning: preg_replace(): No ending delimiter '�' found in /in/H7q5a on line 9 Warning: preg_replace(): No ending delimiter '�' found in /in/H7q5a on line 14 Warning: preg_replace(): No ending delimiter '�' found in /in/H7q5a on line 17

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:
65.6 ms | 402 KiB | 8 Q