3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "Gironde numérique"; $string = strtolower($string); $string = Normalizer::normalize($string, Normalizer::FORM_D); $string = preg_replace('~\p{Mn}~u', '', $string); $string = preg_replace("/[^A-Za-z0-9]/", '', $string); $string = preg_replace('/\s+/', '_', $string); echo "gn_" . $string;
Output for 5.5.17, 5.6.0 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.12
gn_girondenumerique
Output for 5.0.0 - 5.5.16, 5.5.18 - 5.5.38
Fatal error: Class 'Normalizer' not found in /in/T6ceu on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/T6ceu on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/T6ceu on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/T6ceu on line 4
Process exited with code 255.