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_r( $matches); }
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 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pjsau
function name:  (null)
number of ops:  14
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                                                      ->13
    8    10    >   INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.23 ms | 1386 KiB | 17 Q