3v4l.org

run code in 500+ PHP versions simultaneously
<?php function stripDiacritics(string $string): string { return preg_replace('/[\x{0300}-\x{036f}]/u', '', Normalizer::normalize($string , Normalizer::FORM_D)); } var_dump(stripDiacritics('äüößà')); var_dump(stripDiacritics('c̳̻͚̻̩̻͉̯̄̏͑̋͆̎͐ͬ͑͌́͢h̵͔͈͍͇̪̯͇̞͖͇̜͉̪̪̤̙ͧͣ̓̐̓ͤ͋͒ͥ͑̆͒̓͋̑́͞ǎ̡̮̤̤̬͚̝͙̞͎̇ͧ͆͊ͅo̴̲̺͓̖͖͉̜̟̗̮̳͉̻͉̫̯̫̍̋̿̒͌̃̂͊̏̈̏̿ͧ́ͬ̌ͥ̇̓̀͢͜s̵̵̘̹̜̝̘̺̙̻̠̱͚̤͓͚̠͙̝͕͆̿̽ͥ̃͠͡'));
Output for master
Fatal error: Uncaught Error: Class "Normalizer" not found in /in/WodoOD:4 Stack trace: #0 /in/WodoOD(7): stripDiacritics('\xC3\xA4\xC3\xBC\xC3\xB6\xC3\x9F\xC3\xA0') #1 {main} thrown in /in/WodoOD on line 4
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:
13.96 ms | 1167 KiB | 7 Q