3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = 'quick, brown" (for example), but not "quick and brown". So whe'; $test = "QUICK BROWN"; $temp = explode(" ", $test); $temp = array_map(function ($val) { return preg_quote($val, "~");}, $temp); $pattern = '~('.implode("[^A-Za-z0-9]+", $temp).')~i'; echo preg_replace( $pattern , '<span class="hilite">$1</span>', $source );
Output for git.master, git.master_jit, rfc.property-hooks
<span class="hilite">quick, brown</span>" (for example), but not "quick and brown". So whe

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