3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t=\Transliterator::create('Any-CaseFold'); $str=$t->transliterate('Ὀδυσσεύς'); var_dump($str); $t2=\Transliterator::create('Any-Upper'); $str=$t2->transliterate($str); var_dump($str); $str=$t->transliterate($str); var_dump($str); ?>
based on 3m2rD
Output for 7.0.0 - 7.0.4, 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to a member function transliterate() on null in /in/eL4Sc:4 Stack trace: #0 {main} thrown in /in/eL4Sc on line 4
Process exited with code 255.
Output for 7.0.5
Fatal error: Uncaught Error: Class 'Transliterator' not found in /in/eL4Sc:3 Stack trace: #0 {main} thrown in /in/eL4Sc on line 3
Process exited with code 255.
Output for 5.6.8 - 5.6.12, 5.6.17 - 5.6.19, 5.6.21 - 5.6.28
Fatal error: Call to a member function transliterate() on null in /in/eL4Sc on line 4
Process exited with code 255.
Output for 5.3.20 - 5.3.29, 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.16, 5.6.20
Fatal error: Class 'Transliterator' not found in /in/eL4Sc on line 3
Process exited with code 255.
Output for 5.4.10 - 5.5.28, 5.5.31 - 5.5.33, 5.5.35
Fatal error: Call to a member function transliterate() on a non-object in /in/eL4Sc on line 4
Process exited with code 255.