3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); ini_set("intl.error_level", E_WARNING); ini_set("intl.default_locale", "de_DE"); echo INTL_ICU_VERSION; $rules = <<<RULES Any-NFC; Any-Latin; Latin-ASCII; Lower; [{ and }{ und }] > '&'; ' van ' > 'v.'; '(tm)' > '™'; '(c)' > '©'; '(r)' > '®'; '(at)' > '@'; [^a-z0-9] Remove; RULES; var_dump( \transliterator_transliterate( 'foo and bar und baz', 'foobarbaz' ) ); ?>
based on MLe0U
Output for 7.3.0alpha1 - 7.3.0beta1
skip intl extension not enabled
Output for 7.1.0, 7.1.20, 7.2.5 - 7.2.6
57.1 Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "foo and bar und baz" in /in/kVHTP on line 27 Warning: transliterator_transliterate(): Could not create transliterator with ID "foo and bar und baz" (transliterator_create: unable to open ICU transliterator with id "foo and bar und baz": U_INVALID_ID) in /in/kVHTP on line 27 bool(false)
Output for 7.1.13 - 7.1.16, 7.2.1 - 7.2.4
60.2 Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "foo and bar und baz" in /in/kVHTP on line 27 Warning: transliterator_transliterate(): Could not create transliterator with ID "foo and bar und baz" (transliterator_create: unable to open ICU transliterator with id "foo and bar und baz": U_INVALID_ID) in /in/kVHTP on line 27 bool(false)
Output for 7.1.12, 7.2.0
60.1 Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "foo and bar und baz" in /in/kVHTP on line 27 Warning: transliterator_transliterate(): Could not create transliterator with ID "foo and bar und baz" (transliterator_create: unable to open ICU transliterator with id "foo and bar und baz": U_INVALID_ID) in /in/kVHTP on line 27 bool(false)
Output for 7.1.5 - 7.1.11
59.1 Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "foo and bar und baz" in /in/kVHTP on line 27 Warning: transliterator_transliterate(): Could not create transliterator with ID "foo and bar und baz" (transliterator_create: unable to open ICU transliterator with id "foo and bar und baz": U_INVALID_ID) in /in/kVHTP on line 27 bool(false)
Output for 7.1.1 - 7.1.4
58.2 Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "foo and bar und baz" in /in/kVHTP on line 27 Warning: transliterator_transliterate(): Could not create transliterator with ID "foo and bar und baz" (transliterator_create: unable to open ICU transliterator with id "foo and bar und baz": U_INVALID_ID) in /in/kVHTP on line 27 bool(false)
Output for hhvm-3.18.5 - 3.22.0
52.1bool(false)
Output for 5.6.30
58.2 Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "foo and bar und baz" in /in/kVHTP on line 28 Warning: transliterator_transliterate(): Could not create transliterator with ID "foo and bar und baz" (transliterator_create: unable to open ICU transliterator with id "foo and bar und baz": U_INVALID_ID) in /in/kVHTP on line 28 bool(false)
Output for 5.6.29
58.1 Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "foo and bar und baz" in /in/kVHTP on line 28 Warning: transliterator_transliterate(): Could not create transliterator with ID "foo and bar und baz" (transliterator_create: unable to open ICU transliterator with id "foo and bar und baz": U_INVALID_ID) in /in/kVHTP on line 28 bool(false)
Output for 5.6.0 - 5.6.28
57.1 Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "foo and bar und baz" in /in/kVHTP on line 28 Warning: transliterator_transliterate(): Could not create transliterator with ID "foo and bar und baz" (transliterator_create: unable to open ICU transliterator with id "foo and bar und baz": U_INVALID_ID) in /in/kVHTP on line 28 bool(false)