3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s= "https://wwww.gogu.ro"; echo preg_replace("[^[:alpha:]&^[:alnum:]]|[&]|[\^]","-",strtolower($s));
based on Oot0v
Output for 5.3.18 - 7.2.0
Warning: preg_replace(): Unknown modifier '|' in /in/esA5l on line 4