3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = preg_replace('/(\w)(\W*)(\w)?/e', "strtoupper('$1').strtolower('$3')", 'test example.Hello World abc'); echo $str; ?>

preferences:
52.78 ms | 402 KiB | 5 Q