3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "hallo du bi aslo ein tag <tag>im tag </tag> ich bin ein ümläütwört. ich bin eine frage? ich bin mischa.??msch??. "; $site = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $text); $site = preg_replace('#<style(.*?)>(.*?)</style>#is', '', $site); $site = strip_tags($site); $site = preg_replace('/[\?]+\s/', '. ', $site); $site = preg_replace('/\s\s+/', ' ', $site); $site = strtolower ( $site ); $site = html_entity_decode($site, ENT_QUOTES, "UTF-8"); $site = preg_replace('/[^a-z0-9\.-üßäö\s]+/', ' ', $site); $search = array("[", "]", "{", "}", ":"); $text = str_replace($search, "", $site); $site = explode(". ", $text); print_r($site);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [0] => hallo du bi aslo ein tag im tag ich bin ein ümläütwört [1] => ich bin eine frage [2] => ich bin mischa.??msch?? [3] => )

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:
51.13 ms | 401 KiB | 8 Q