3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 'Starting...\n'; $class = 'PharFileInfo'; echo 'Locale: '.setlocale(LC_ALL, '0')."\n"; echo "$class exists? ".var_export(class_exists($class), true)."\n"; echo 'Locale: '.setlocale(LC_ALL, 'tr_TR.UTF-8')."\n"; echo "$class exists? ".var_export(class_exists($class), true)."\n"; ?>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Starting...\nLocale: C PharFileInfo exists? true Locale: PharFileInfo exists? true
Output for hhvm-3.10.0 - 3.12.0
Starting...\nLocale: PharFileInfo exists? true Locale: PharFileInfo exists? true
Output for 4.3.0 - 5.2.17
Starting...\nLocale: C PharFileInfo exists? false Locale: PharFileInfo exists? false