3v4l.org

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

preferences:
51.28 ms | 402 KiB | 5 Q