3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "ułatwiającą Sprawne Działanie, możemy na coraz łą"; $result = preg_replace("#( |^)[\S]{1,2}( |$)#u", " ", $text); echo $result;

preferences:
36.14 ms | 402 KiB | 5 Q