3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = '/[bcd]/'; $var1 = "abx"; if (preg_match($var1,$var)){ echo "yes"; }else{ echo "no"; } ?>
based on rT0LA
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0alpha1
Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/utFBc on line 5 no
Output for hhvm-3.15.4
Warning: Delimiter must not be alphanumeric or backslash in /in/utFBc on line 5 no