3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt='"<optgroup label=" Gare du Nord - Gare de l\'Est - 10e"></optgroup><option data-max-adults="3" value="TIMHOTELGEst" selected>&#9473; Timhotel Paris Gare de l\'Est / 3*"'; $re1='.*?'; # Non-greedy match on filler if ($c=preg_match_all ("/".$re1."/is", $txt, $matches)) { $word1=$matches[1][0]; print "($word1) \n"; } $regs = explode(">━ ", $opt); // preg_match('`<option value="(.+?)" selected>`', $opt, $regs); var_dump($regs);
Output for git.master, git.master_jit
Warning: Undefined array key 1 in /in/DXhOG on line 9 Warning: Trying to access array offset on value of type null in /in/DXhOG on line 9 () Warning: Undefined variable $opt in /in/DXhOG on line 13 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/DXhOG on line 13 array(1) { [0]=> string(0) "" }
Output for rfc.property-hooks
Warning: Undefined array key 1 in /in/DXhOG on line 9 Warning: Trying to access array offset on null in /in/DXhOG on line 9 () Warning: Undefined variable $opt in /in/DXhOG on line 13 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/DXhOG on line 13 array(1) { [0]=> 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:
43.66 ms | 401 KiB | 8 Q