3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '<img src="/index.php/tools/packages/bullseye/file_display.php?htmlpage=&amp;fID=300" />'; $file_ids = array(); $html = preg_match_all('~src="/index\.php/tools/packages/bullseye/file_display\.php\?htmlpage=&amp;fID=(\d+)"~', $string, $file_ids, $string); var_dump($file_ids);
Output for 7.0.0 - 7.1.0
Warning: preg_match_all() expects parameter 4 to be integer, string given in /in/U1C8o on line 5 array(0) { }
Output for 5.2.3 - 5.6.28
Warning: preg_match_all() expects parameter 4 to be long, string given in /in/U1C8o on line 5 array(0) { }
Output for 4.3.3 - 5.2.2
<br /> <b>Warning</b>: preg_match_all() expects parameter 4 to be long, string given in <b>/in/U1C8o</b> on line <b>5</b><br /> array(0) { }
Output for 4.3.0 - 4.3.2
<br /> <b>Warning</b>: Wrong value for parameter 4 in call to preg_match_all() in <b>/in/U1C8o</b> on line <b>5</b><br /> array(0) { }