3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = array(" Heureka.cz "," Heureka.cz "," Kosmetika a zdravĂ­ "," Kosmetika"); $bez_mezer = array_map('trim', array_filter($text)); var_dump($bez_mezer);

preferences:
50.99 ms | 410 KiB | 5 Q