3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '0x0fc929cc'; $regex = '/[0-9a-f]{3,5}(C+)$/i'; if (preg_match($regex, $str, $matches)) { echo $matches[1]; } else { echo 'b'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6o3i2
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $regex, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '0x0fc929cc'
    3     1        ASSIGN                                                   !1, '%2F%5B0-9a-f%5D%7B3%2C5%7D%28C%2B%29%24%2Fi'
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $5      
          7      > JMPZ                                                     $5, ->11
    6     8    >   FETCH_DIM_R                                      ~6      !2, 1
          9        ECHO                                                     ~6
         10      > JMP                                                      ->12
    9    11    >   ECHO                                                     'b'
   11    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.58 ms | 1394 KiB | 15 Q