3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "case ( 'this_is__test_innit'):"; if (!preg_match('/case[\s]*?\([\s]*?[\'|\"][^\'|^\"]+/', $test, $matches)) { print 'no match'; } else { print preg_replace('/case[\s]*?\([\s]*?[\'|\"]/', '', $matches[0]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/234p0
function name:  (null)
number of ops:  18
compiled vars:  !0 = $test, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'case+++%28+++%27this_is__test_innit%27%29%3A'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2Fcase%5B%5Cs%5D%2A%3F%5C%28%5B%5Cs%5D%2A%3F%5B%27%7C%5C%22%5D%5B%5E%27%7C%5E%5C%22%5D%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6        BOOL_NOT                                         ~4      $3
          7      > JMPZ                                                     ~4, ->10
    6     8    >   ECHO                                                     'no+match'
          9      > JMP                                                      ->17
    8    10    >   INIT_FCALL                                               'preg_replace'
         11        SEND_VAL                                                 '%2Fcase%5B%5Cs%5D%2A%3F%5C%28%5B%5Cs%5D%2A%3F%5B%27%7C%5C%22%5D%2F'
         12        SEND_VAL                                                 ''
         13        FETCH_DIM_R                                      ~5      !1, 0
         14        SEND_VAL                                                 ~5
         15        DO_ICALL                                         $6      
         16        ECHO                                                     $6
    9    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.58 ms | 1399 KiB | 17 Q