3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $indexPattern = '/ ss:Index="(\d+)" /'; preg_match(indexPattern, '<Cell ss:Index="12" >', $matches); var_dump($matches);
Output for 5.3.28 - 5.3.29, 5.4.18 - 7.1.0
Notice: Use of undefined constant indexPattern - assumed 'indexPattern' in /in/SmcK5 on line 4 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/SmcK5 on line 4 NULL
Output for 5.2.0 - 5.3.27, 5.4.0 - 5.4.17
Notice: Use of undefined constant indexPattern - assumed 'indexPattern' in /in/RRp5k on line 4 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/RRp5k on line 4 NULL
Output for 4.3.11 - 5.1.6
Notice: Use of undefined constant indexPattern - assumed 'indexPattern' in /in/RRp5k on line 4 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/RRp5k on line 4 array(0) { }
Output for 4.3.1 - 4.3.10
Notice: Use of undefined constant indexPattern - assumed 'indexPattern' in /in/RRp5k on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/RRp5k on line 4 array(0) { }
Output for 4.3.0
Notice: Use of undefined constant indexPattern - assumed 'indexPattern' in /in/SmcK5 on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/SmcK5 on line 4 array(0) { }