3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '@^/cef/?(/logs/(*SKIP)(*FAIL)|.)*$@'; var_dump(preg_match($regex, '/cef/foo/bar/baz', $matches), $matches); var_dump(preg_match($regex, '/cef/foo/logs/access.log', $matches), $matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pBTX5
function name:  (null)
number of ops:  20
compiled vars:  !0 = $regex, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%40%5E%2Fcef%2F%3F%28%2Flogs%2F%28%2ASKIP%29%28%2AFAIL%29%7C.%29%2A%24%40'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '%2Fcef%2Ffoo%2Fbar%2Fbaz'
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'preg_match'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 '%2Fcef%2Ffoo%2Flogs%2Faccess.log'
         14        SEND_REF                                                 !1
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
261.73 ms | 1395 KiB | 18 Q