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:
128.73 ms | 476 KiB | 5 Q