3v4l.org

run code in 300+ PHP versions simultaneously
<?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;

preferences:
62.42 ms | 402 KiB | 5 Q