3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = array('text1', 'text2', 'text-fixed-font3'); foreach($text as $str) { preg_match_all('#\d+#', $str, $matches); var_dump($matches[0][1]); }
based on bYtmV
Output for 5.3.0 - 7.1.0
Notice: Undefined offset: 1 in /in/JZFJE on line 8 NULL Notice: Undefined offset: 1 in /in/JZFJE on line 8 NULL Notice: Undefined offset: 1 in /in/JZFJE on line 8 NULL
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 1 in /in/JZFJE on line 8 NULL Notice: Undefined offset: 1 in /in/JZFJE on line 8 NULL Notice: Undefined offset: 1 in /in/JZFJE on line 8 NULL