3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $answer='</li><li><i class="icon-key"></i><input type="password" id="password" name="password" required="required" placeholder="password" autocomplete="off" /></li></ul><div class="actions"><input type="hidden" id="_token" name="_token" value="91fa9e869fb71902cc367523c212755e043b3ab3" />'; $pattern2 = '~name=\"_token\" value=\"([^"]+)~'; preg_match_all($pattern2,$answer,$result); echo "<pre>"; print_r($result); echo "</pre>";
Output for 4.3.0 - 7.2.0
<pre>Array ( [0] => Array ( [0] => name="_token" value="91fa9e869fb71902cc367523c212755e043b3ab3 ) [1] => Array ( [0] => 91fa9e869fb71902cc367523c212755e043b3ab3 ) ) </pre>