3v4l.org

run code in 300+ PHP versions simultaneously
<?php function splitallowescape($str) { preg_match_all('/(?:[^\x5c,]|\x5c(?:.|$))+/', $str, $matches); foreach($matches[0] as $key => $match) { $matches[0][$key] = str_replace(array("\\\\"),array("\\"),$row["name"]); } return $matches[0]; } var_dump(splitallowescape("a,b")) ?>
Output for git.master, git.master_jit
Warning: Undefined variable $row in /in/iuqkH on line 8 Warning: Trying to access array offset on value of type null in /in/iuqkH on line 8 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/iuqkH on line 8 Warning: Undefined variable $row in /in/iuqkH on line 8 Warning: Trying to access array offset on value of type null in /in/iuqkH on line 8 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/iuqkH on line 8 array(2) { [0]=> string(0) "" [1]=> string(0) "" }
Output for rfc.property-hooks
Warning: Undefined variable $row in /in/iuqkH on line 8 Warning: Trying to access array offset on null in /in/iuqkH on line 8 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/iuqkH on line 8 Warning: Undefined variable $row in /in/iuqkH on line 8 Warning: Trying to access array offset on null in /in/iuqkH on line 8 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/iuqkH on line 8 array(2) { [0]=> string(0) "" [1]=> string(0) "" }

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:
84.4 ms | 402 KiB | 8 Q