3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oldstr1='<span style="font-family: Times New Roman; font-size: 12pt;">'; $oldstr2='</span>'; $newstr1='<input type="radio" value="1" name="choice">'; $newstr2="</input>"; $str=$values[$i] ['value']; while (preg_match($oldstr1, $str) && preg_match($oldstr2, $str)) { $str = preg_replace($oldstr1,$newstr1, $str, 1); $str = preg_replace($oldstr2,$newstr2, $str, 1); } echo $str;
Output for git.master, git.master_jit
Warning: Undefined variable $values in /in/mpA8D on line 6 Warning: Undefined variable $i in /in/mpA8D on line 6 Warning: Trying to access array offset on value of type null in /in/mpA8D on line 6 Warning: Trying to access array offset on value of type null in /in/mpA8D on line 6 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/mpA8D on line 8
Output for rfc.property-hooks
Warning: Undefined variable $values in /in/mpA8D on line 6 Warning: Undefined variable $i in /in/mpA8D on line 6 Warning: Trying to access array offset on null in /in/mpA8D on line 6 Warning: Trying to access array offset on null in /in/mpA8D on line 6 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/mpA8D on line 8

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