3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pwd = 'fhtt21'; $pwd_cond1 = preg_match('/[0-9]/',$pwd); $pwd_cond2 = preg_match('/[!"#$%&\'()*+,-.\/:;<=>?@[\]^_{|}\`~]/',$pwd); if( ($pwd_cond1 OR $pwd_cond2) AND strlen($pwd) >= 8) echo 1; else echo 0;
based on XG5UC
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
0