3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<img src="/index.php/tools/packages/bullseye/file_display.php?htmlpage=&mp;fID=3200" /><img src="/index.php/tools/packages/bullseye/file_display.php?htmlpage=&mp;fID=300" /><img src="/index.php/tools/packages/bullseye/file_display.php?htmlpage=&mp;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_unique(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/7rHdj
function name:  (null)
number of ops:  23
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%26mp%3BfID%3D3200%22+%2F%3E%3Cimg+src%3D%22%2Findex.php%2Ftools%2Fpackages%2Fbullseye%2Ffile_display.php%3Fhtmlpage%3D%26mp%3BfID%3D300%22+%2F%3E%3Cimg+src%3D%22%2Findex.php%2Ftools%2Fpackages%2Fbullseye%2Ffile_display.php%3Fhtmlpage%3D%26mp%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_unique'
          9        INIT_FCALL                                               'array_map'
         10        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F7rHdj%3A7%240'
         11        SEND_VAL                                                 ~7
         12        FETCH_DIM_R                                      ~8      !1, 1
         13        CAST                                          7  ~9      ~8
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                         $10     
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !1, $11
    8    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F7rHdj%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rHdj
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%2F7rHdj%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.15 ms | 1396 KiB | 21 Q