3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '"¡Á É Ñ Elaskar me mandaba flores pero atña yo creía que eran de Fñariña 7!", dijo Dominique Pestaña'; function parseStopWords($text){ $text = preg_replace('/[^a-zA-Z0-9áéíóúñÁÉÍÓÚÑ¡\', ]/i','',$text); $stopwords = array('ante','bajo','cabe','con','contra','de','desde','en','entre','hacia','hasta','para','por','sin','sobre','tras','el','lo','la','los','las','un','unos','una','al','del','que','es','se','y','fue'); foreach($stopwords as $w){ $text = preg_replace('/\b'.$w.'\b/i','',$text); } $text = preg_replace('/\s{2,}/i',' ',$text); return $text; } echo parseStopWords($text); die;
Output for git.master, git.master_jit, rfc.property-hooks
¡Á É Ñ Elaskar me mandaba flores pero atña yo creía eran Fñariña 7, dijo Dominique Pestaña

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
59.37 ms | 401 KiB | 8 Q