3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $someVar = 'teststring3'; if (1 === preg_match('@teststring1|teststring2|teststring3@', $someVar)) { echo 'match'; }
Output for 4.3.0 - 7.2.0
match