3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "Gironde numérique"; $string = strtolower($string); $string = strtr(utf8_decode($str), utf8_decode('àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ'), 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'); $string = preg_replace("/[^A-Za-z0-9]/", '', $string); $string = preg_replace('/\s+/', '_', $string); echo "gn_" . $string;
Output for 5.0.4 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Notice: Undefined variable: str in /in/j0fuv on line 4 gn_
Output for hhvm-3.12.0
Notice: Undefined variable: str in /in/j0fuv on line 4 Warning: utf8_decode() expects parameter 1 to be string, null given in /in/j0fuv on line 4 Warning: strtr() expects parameter 1 to be string, null given in /in/j0fuv on line 4 gn_
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: str in /in/j0fuv on line 4 gn_