3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = "case ( 'this_is__test_innit'):"; if (!preg_match('/case[\s]*?\([\s]*?[\'|\"][^\'|^\"]+/', $test, $matches)) { print 'no match'; } else { print preg_replace('/case[\s]*?\([\s]*?[\'|\"]/', '', $matches[0]) }
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected '}' in /in/Bge5o on line 9
Process exited with code 255.