3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows22['Status2']="PR001:Approved,SA001:Rejected"; $che = "SA001"; if($rows22['Status2'] == "") { $status = ""; } else { $ks = 0; $ched = explode(',',$che); while($ks < sizeof($ched)) { if (strpos($rows22['Status2'],$ched[$ks]) !== false) { $sts = explode(',',$rows225['Status2']); $s = 0; while($s < sizeof($sts)) { if (strpos($sts[$s],$ched[$ks]) !== false) { $sts[$s] = ""; } if($s == 0) $status = $sts[$s]; else { $status = $status.",".$sts[$s]; } $s++; } } else { $status = $rows225['Status2']; } $ks++; } }
Output for git.master, git.master_jit
Warning: Undefined variable $rows225 in /in/c8atT on line 21 Warning: Trying to access array offset on value of type null in /in/c8atT on line 21 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/c8atT on line 21
Output for rfc.property-hooks
Warning: Undefined variable $rows225 in /in/c8atT on line 21 Warning: Trying to access array offset on null in /in/c8atT on line 21 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/c8atT on line 21

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