3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $strlname = "Jean paul"; $strlname=strtoupper($strlname); $strlname=str_replace(array('&', '~', '#', '{', '(', '[', '|', '`', '_', '\\', '@', ')', ']', '=', '}', '$', '�', '�', '%', '*', ',', '?', ';', '.', ':', '/', '!', '�', '+', '�', ' '), '-', $strlname); $strlname=str_replace('--039-', "'", $strlname); $strlname=str_replace('-"', '"', $strlname); $strlname=trim($strlname); $strlname=preg_replace("( +)", " ", str_replace(array("\t", "\r", "\n"), " ", trim($strlname))); $strlname=str_replace(' ', '-', $strlname); echo $strlname;
based on sndf5
Output for 4.3.0 - 7.2.0
JEAN----PAUL