3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'Hello'; var_dump(mb_detect_encoding($string)); mb_detect_order('UTF-8'); print_r(['order' => mb_detect_order(), 'detected' => mb_detect_encoding($string)]);
based on sDCdP
Output for 5.4.0 - 7.3.0beta1
string(5) "ASCII" Array ( [order] => Array ( [0] => UTF-8 ) [detected] => UTF-8 )
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/FDSN3 on line 8
Process exited with code 255.