3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is my test string with an <img test /> image. <test />'; $pattern = '/<([a-zA-Z0-9]*)(.*)\/>/iU'; $count = preg_match_all($pattern, $string, $matches, PREG_SET_ORDER); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eBAiW
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $pattern, !2 = $count, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'This+is+my+test+string+with+an+%3Cimg+test+%2F%3E+image.+%3Ctest+%2F%3E'
    4     1        ASSIGN                                                   !1, '%2F%3C%28%5Ba-zA-Z0-9%5D%2A%29%28.%2A%29%5C%2F%3E%2FiU'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !3
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    6     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.57 ms | 1394 KiB | 17 Q