3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $journalName= "ONN &profit non"; $journalName = strtolower(str_replace('&', '' ,preg_replace('/\s+/', '_', $journalName))); print_r($journalName);
based on 6lACp
Output for 4.3.0 - 7.1.0
onn_profit_non