3v4l.org

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

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