3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string1 = "sqrtpdrt"; // matched $string1 = "qwntfschrprtkjs"; // not matched (contains chr group) var_dump(preg_match('/[bcdfghjklmnpqrstvwxz]{4}/i', $string1 )); var_dump(preg_match('/[bcdfghjklmnpqrstvwxz]{4}/i', $string2 ));
Output for 5.0.4 - 7.1.0
int(1) Notice: Undefined variable: string2 in /in/tUOUZ on line 6 int(0)
Output for 4.3.0 - 5.0.3
int(1) Notice: Undefined variable: string2 in /in/tUOUZ on line 6 int(0)