3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pswd = "!"; $specialChar= preg_match("/^[!@#&*%]+/", $pswd); // at least one $numberChar= preg_match("/^\d{2,}/", $pswd); //two or more digits echo $specialChar . " " . $numberChar;
based on rCnV0
Output for 4.3.0 - 7.1.0
1 0