3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "Gironde numérique"; $string = strtoupper($string); $string = preg_replace("/[^A-Za-z0-9 ]/", '', $string); $string = preg_replace('/\s+/_', '', $string); echo "gn_" . $string;
Output for 4.3.11 - 7.1.0
Warning: preg_replace(): Unknown modifier '_' in /in/SAXYI on line 5 gn_
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier '_' in /in/SAXYI on line 5 gn_