3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Let's observe obviously knowledgeable approaches that target helpful items succinctly"; echo preg_replace('~\S\K\S*\s*~u', '', $string);

preferences:
41.72 ms | 1240 KiB | 5 Q