3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'šašek.txt'; setlocale('cs_CZ'); echo basename($string) . "\n";
based on G1E4G
Output for 5.3.0 - 7.2.6
Warning: setlocale() expects at least 2 parameters, 1 given in /in/CM7ML on line 4 ašek.txt
Output for 5.0.0 - 5.2.17
Warning: Wrong parameter count for setlocale() in /in/CM7ML on line 4 ašek.txt
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for setlocale() in /in/CM7ML on line 4 šašek.txt