3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "L’autentica Basilicata Igt Bianco Dolce 2007"; $str = preg_replace_callback('/[\'`’]([aeiou])/', function ($m) { return strtoupper($m[1]); }, $str); var_dump($str);