3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<img src="/index.php/tools/packages/bullseye/file_display.php?htmlpage=&amp;fID=300" /><img src="/index.php/tools/packages/bullseye/file_display.php?htmlpage=&amp;fID=300" /><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); $file_ids = array_map(function($v) { return intval($v); }, (array)$file_ids[1]); var_dump($file_ids);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VAkTj
function name:  (null)
number of ops:  20
compiled vars:  !0 = $string, !1 = $file_ids, !2 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cimg+src%3D%22%2Findex.php%2Ftools%2Fpackages%2Fbullseye%2Ffile_display.php%3Fhtmlpage%3D%26amp%3BfID%3D300%22+%2F%3E%3Cimg+src%3D%22%2Findex.php%2Ftools%2Fpackages%2Fbullseye%2Ffile_display.php%3Fhtmlpage%3D%26amp%3BfID%3D300%22+%2F%3E%3Cimg+src%3D%22%2Findex.php%2Ftools%2Fpackages%2Fbullseye%2Ffile_display.php%3Fhtmlpage%3D%26amp%3BfID%3D300%22+%2F%3E'
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%7Esrc%3D%22%2Findex%5C.php%2Ftools%2Fpackages%2Fbullseye%2Ffile_display%5C.php%5C%3Fhtmlpage%3D%26amp%3BfID%3D%28%5Cd%2B%29%22%7E'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    7     8        INIT_FCALL                                               'array_map'
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FVAkTj%3A7%240'
         10        SEND_VAL                                                 ~7
         11        FETCH_DIM_R                                      ~8      !1, 1
         12        CAST                                          7  ~9      ~8
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !1, $10
    8    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FVAkTj%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VAkTj
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        CAST                                          4  ~1      !0
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FVAkTj%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.48 ms | 1396 KiB | 19 Q