3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tweet = "hello world #dontremoveme foobar http://example.com/#dontremoveme #remove #removeme #removeüäüö"; #$res = preg_replace("/ #\p{L}+\b(?!\s+\p{L})/u", '', $tweet); $res = preg_replace("/ #\w+/u", '', $tweet); echo $res,"\n";
based on XrRLq

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
hello world foobar http://example.com/#dontremoveme
Output for Array change keys
hello world foobar http://example.com/#dontremoveme
Output for Lexical anon
hello world foobar http://example.com/#dontremoveme

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