3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'SlimDuct Soffit Inlet 3-3/4" White SP100W'; $str = strtolower(trim(preg_replace('/[^a-zA-Z0-9]+/', '-', $name), '-')); echo $str. "\n"; ?>

preferences:
33.29 ms | 402 KiB | 5 Q