3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(preg_match('@/about/social/([0-9a-zA-Z\-]+)@','/about/social/allOk/',$pM))$newsSectionName = $pM[1]; echo $newsSectionName;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/J6rcW
function name:  (null)
number of ops:  10
compiled vars:  !0 = $pM, !1 = $newsSectionName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%40%2Fabout%2Fsocial%2F%28%5B0-9a-zA-Z%5C-%5D%2B%29%40'
          2        SEND_VAL                                                 '%2Fabout%2Fsocial%2FallOk%2F'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->8
          6    >   FETCH_DIM_R                                      ~3      !0, 1
          7        ASSIGN                                                   !1, ~3
    3     8    >   ECHO                                                     !1
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.95 ms | 1385 KiB | 15 Q