3v4l.org

run code in 300+ PHP versions simultaneously
<?php $samp = "This is an . examp-le tex't using & my ' - / Regex expression"; $samp = preg_replace('/[^A-Z0-9 ]+[^A-Z0-9\'- ]/i', "", $samp); $samp = str_replace(" "," ",$samp); $jk = explode(" ",$samp); $i = sizeof($jk); $j = 0; $array=""; for($j=0;$j<$i-1;$j++) { $array[] = $jk[$j]." ".$jk[$j+1]; } print_r($array);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_replace(): Compilation failed: range out of order in character class at offset 21 in /in/mMdpp on line 3 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/mMdpp on line 4

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