3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( utf8_encode("grado académico"), utf8_encode("ñññññóóóóûüÑuü"), utf8_encode("ÁÁÁÁÉÉ"), utf8_encode("código") ); $b = array_map(utf8_decode, $a); print_r($b);
Output for 7.2.0
Warning: Use of undefined constant utf8_decode - assumed 'utf8_decode' (this will throw an Error in a future version of PHP) in /in/SmAOS on line 9 Array ( [0] => grado académico [1] => ñññññóóóóûüÑuü [2] => ÁÁÁÁÉÉ [3] => código )
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant utf8_decode - assumed 'utf8_decode' in /in/SmAOS on line 9 Array ( [0] => grado académico [1] => ñññññóóóóûüÑuü [2] => ÁÁÁÁÉÉ [3] => código )