3v4l.org

run code in 500+ PHP versions simultaneously
<?php $files = [ 'core/vendor/blah.php', 'vendor/blah.php', 'other/vendor/blah.php', 'test/vendor/test/blah.php', 'what/tester/vendor/blah.php', ]; foreach ($files as $file) { if (preg_match('#^core/vendor/|^vendor/#', $file)) { print 'success:' . $file . "\n"; } else { print 'fail:' . $file . "\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/n3ZfN
function name:  (null)
number of ops:  15
compiled vars:  !0 = $files, !1 = $file
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   11     1      > FE_RESET_R                                           $3      !0, ->13
          2    > > FE_FETCH_R                                                   $3, !1, ->13
   12     3    >   FRAMELESS_ICALL_2                preg_match          ~4      '%23%5Ecore%2Fvendor%2F%7C%5Evendor%2F%23', !1
          4      > JMPZ                                                         ~4, ->9
   13     5    >   CONCAT                                               ~5      'success%3A', !1
          6        CONCAT                                               ~6      ~5, '%0A'
          7        ECHO                                                         ~6
   12     8      > JMP                                                          ->12
   16     9    >   CONCAT                                               ~7      'fail%3A', !1
         10        CONCAT                                               ~8      ~7, '%0A'
         11        ECHO                                                         ~8
   11    12    > > JMP                                                          ->2
         13    >   FE_FREE                                                      $3
   18    14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
131.66 ms | 474 KiB | 7 Q