3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $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 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8sd3E
function name:  (null)
number of ops:  17
compiled vars:  !0 = $pattern, !1 = $template, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, '%7E%28.%2B%29%7E'
    4     4        ASSIGN                                                   !1, 'abc'
    5     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        SEND_REF                                                 !2
          9        DO_ICALL                                         $6      
         10      > JMPZ                                                     $6, ->14
         11    >   FETCH_DIM_R                                      ~7      !2, 1
         12        QM_ASSIGN                                        ~8      ~7
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~8      null
         15    >   FREE                                                     ~8
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.28 ms | 1395 KiB | 17 Q