3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'hello_world_again'; $str = preg_replace('/\_(.)/', '$0a', $str); echo $str;

preferences:
46.91 ms | 402 KiB | 5 Q