3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace_callback('/(ä)|(ö)|(ü)|(Ä)|(Ö)|(Ü)|(ß)/', 'äöüÄÖÜß', function($matches){ foreach($matches as &$match){ switch($match){ case 'ü': $match = 'ue'; break; case 'ö': $match = 'oe'; break; case 'ä': $match = 'ae'; break; case 'Ü': $match = 'Ue'; break; case 'Ö': $match = 'Oe'; break; case 'Ä': $match = 'Ae'; break; case 'ß': $match = 'ss'; break; } } });
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: preg_replace_callback(): Argument #2 ($callback) must be a valid callback, function "äöüÄÖÜß" not found or invalid function name in /in/jsCZq:3 Stack trace: #0 /in/jsCZq(3): preg_replace_callback('/(\xC3\xA4)|(\xC3\xB6)|(\xC3\xBC)...', '\xC3\xA4\xC3\xB6\xC3\xBC\xC3\x84\xC3\x96\xC3\x9C\xC3\x9F', Object(Closure)) #1 {main} thrown in /in/jsCZq on line 3
Process exited with code 255.

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