3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'TESTING<html>This is a string</html>ANOTHER TEST!!'; preg_match_all('/(<html>.*<\/html>)/', $str, $matches); print_r($matches[1][0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rUmBu
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'TESTING%3Chtml%3EThis+is+a+string%3C%2Fhtml%3EANOTHER+TEST%21%21'
    3     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3Chtml%3E.%2A%3C%5C%2Fhtml%3E%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'print_r'
          7        FETCH_DIM_R                                      ~4      !1, 1
          8        FETCH_DIM_R                                      ~5      ~4, 0
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.18 ms | 1010 KiB | 15 Q