3v4l.org

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