3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = 'Fortress 3-1/2" White 90 Degree Outside Vertical Elbow LCO92W'; $str = strtolower(trim(preg_replace('/[^a-zA-Z0-9]+/', '-', $name), '-')); echo $str. "\n"; ?>
Output for 4.3.0 - 7.2.0
fortress-3-1-2-white-90-degree-outside-vertical-elbow-lco92w