3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "this is meeĆ¹s school of sachin"; $pattern = "mee"; if(preg_match("/[A-Za-z]*".$pattern."([A-Za-z]*)/", $a, $match)) print(strlen($match[1])); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/T8ZcE
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $pattern, !2 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'this+is+mee%C3%B9s+school+of+sachin'
    3     1        ASSIGN                                                   !1, 'mee'
    4     2        INIT_FCALL                                               'preg_match'
          3        CONCAT                                           ~5      '%2F%5BA-Za-z%5D%2A', !1
          4        CONCAT                                           ~6      ~5, '%28%5BA-Za-z%5D%2A%29%2F'
          5        SEND_VAL                                                 ~6
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !2
          8        DO_ICALL                                         $7      
          9      > JMPZ                                                     $7, ->13
    5    10    >   FETCH_DIM_R                                      ~8      !2, 1
         11        STRLEN                                           ~9      ~8
         12        ECHO                                                     ~9
    6    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.06 ms | 1394 KiB | 15 Q