3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paettern = '~.+~'; $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/o3RkC
function name:  (null)
number of ops:  14
compiled vars:  !0 = $paettern, !1 = $template, !2 = $pattern, !3 = $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                                                 !2
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !3
          6        DO_ICALL                                         $6      
          7      > JMPZ                                                     $6, ->11
          8    >   FETCH_DIM_R                                      ~7      !3, 1
          9        QM_ASSIGN                                        ~8      ~7
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~8      null
         12    >   FREE                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1394 KiB | 15 Q