3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '~.+~'; $template = 'abc'; preg_match($pattern, $template, $matches) ? $matches[1] : null;
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/fGAfr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $pattern, !1 = $template, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7E.%2B%7E'
    3     1        ASSIGN                                                   !1, 'abc'
    4     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $5      
          7      > JMPZ                                                     $5, ->11
          8    >   FETCH_DIM_R                                      ~6      !2, 1
          9        QM_ASSIGN                                        ~7      ~6
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~7      null
         12    >   FREE                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.05 ms | 1394 KiB | 15 Q