3v4l.org

run code in 500+ PHP versions simultaneously
<?php $modules = [ 'node', 'system', 'my_module_library', 'my_module', 'my1_module', 'my_module_with_prefix', ]; preg_match_all('<#' . implode('[^#]+|#', $modules) . '[^#]+#>', '#' . implode('#', $modules) . '#', $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vt4Qt
function name:  (null)
number of ops:  16
compiled vars:  !0 = $modules, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   11     1        INIT_FCALL                                                   'preg_match_all'
          2        FRAMELESS_ICALL_2                implode             ~3      '%5B%5E%23%5D%2B%7C%23', !0
          3        CONCAT                                               ~4      '%3C%23', ~3
          4        CONCAT                                               ~5      ~4, '%5B%5E%23%5D%2B%23%3E'
          5        SEND_VAL                                                     ~5
          6        FRAMELESS_ICALL_2                implode             ~6      '%23', !0
          7        CONCAT                                               ~7      '%23', ~6
          8        CONCAT                                               ~8      ~7, '%23'
          9        SEND_VAL                                                     ~8
         10        SEND_REF                                                     !1
         11        DO_ICALL                                                     
   12    12        INIT_FCALL                                                   'var_dump'
         13        SEND_VAR                                                     !1
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.99 ms | 1536 KiB | 15 Q