3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <p>She was like: " <i data-note="Oh, dear this may go haywire">I can't believe it! <img src='crookedface.gif'><br> Watch this video <iframe src="somwhere"></iframe><br> Are you getting all of this?</i> </p> HTML; $el = 'i'; var_export(preg_match_all('/(<'.$el.'(.*?)>)((\n*?.*?\n*?)<\/'.$el.'>|)/', $html, $out, PREG_SET_ORDER) ? $out : []);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => '<i data-note="Oh, dear this may go haywire">', 1 => '<i data-note="Oh, dear this may go haywire">', 2 => ' data-note="Oh, dear this may go haywire"', 3 => '', ), 1 => array ( 0 => '<img src=\'crookedface.gif\'>', 1 => '<img src=\'crookedface.gif\'>', 2 => 'mg src=\'crookedface.gif\'', 3 => '', ), 2 => array ( 0 => '<iframe src="somwhere">', 1 => '<iframe src="somwhere">', 2 => 'frame src="somwhere"', 3 => '', ), )

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