3v4l.org

run code in 300+ PHP versions simultaneously
<?php $selector = 'p:before'; preg_match('~::?(?:first-(?:letter|line)|before|after|selection|value|choices|repeat-(?:item|index)|outside|alternate|(?:line-)?marker|slot\([_a-z0-9+.\\\\-]*\))~i', $selector, $matches); var_dump($matches, $selector);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bjop9
function name:  (null)
number of ops:  11
compiled vars:  !0 = $selector, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'p%3Abefore'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%3A%3A%3F%28%3F%3Afirst-%28%3F%3Aletter%7Cline%29%7Cbefore%7Cafter%7Cselection%7Cvalue%7Cchoices%7Crepeat-%28%3F%3Aitem%7Cindex%29%7Coutside%7Calternate%7C%28%3F%3Aline-%29%3Fmarker%7Cslot%5C%28%5B_a-z0-9%2B.%5C%5C-%5D%2A%5C%29%29%7Ei'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.6 ms | 1394 KiB | 17 Q