3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $regexp = '/^ba\/r$/ui'; $regexpModifiers = substr(strrchr($regexp, "/"), 1); var_dump(strstr($regexModifiers, 'i'));
based on hvFsa
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: regexModifiers in /in/gp6A7 on line 7 bool(false)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: regexModifiers in /in/gp6A7 on line 7 bool(false)