3v4l.org

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