3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = array(); $thumb = array(); $string = ''; preg_match_all("/\<div class=\"merchant_info\">\s*(\<div.*?\<\/div>\s*)?(.*?)\<\/div\>/is", $res[0], $matches ); foreach($matches[0] as $titles){ $title[] = "<div class='titles' >".$titles."</div>"; } preg_match_all("/\<a class=\"thumb\"(.*?)\<\/a\>/is", $res[0], $matches); foreach($matches[0] as $thumbs){ $thumb[] = "<div class='thumbs' >".$thumbs."</div>"; } for($i = 0; $i < count($title); $i++){ $string .= $title[$i] . $thumb[$i]; } echo $string;
Output for git.master, git.master_jit
Warning: Undefined variable $res in /in/mjiLR on line 7 Warning: Trying to access array offset on value of type null in /in/mjiLR on line 7 Deprecated: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/mjiLR on line 7 Warning: Undefined variable $res in /in/mjiLR on line 13 Warning: Trying to access array offset on value of type null in /in/mjiLR on line 13 Deprecated: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/mjiLR on line 13
Output for rfc.property-hooks
Warning: Undefined variable $res in /in/mjiLR on line 7 Warning: Trying to access array offset on null in /in/mjiLR on line 7 Deprecated: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/mjiLR on line 7 Warning: Undefined variable $res in /in/mjiLR on line 13 Warning: Trying to access array offset on null in /in/mjiLR on line 13 Deprecated: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/mjiLR on line 13

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