3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = '$1$2'; preg_match('#(.+)#',$_content, $matches); $_content = preg_replace('#(.+)#', '<span name="iframe_stretch">$1</span>', $_content); echo $_content; var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T9u6V
function name:  (null)
number of ops:  17
compiled vars:  !0 = $_content, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%241%242'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%23%28.%2B%29%23'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%23%28.%2B%29%23'
          8        SEND_VAL                                                 '%3Cspan+name%3D%22iframe_stretch%22%3E%241%3C%2Fspan%3E'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    5    12        ECHO                                                     !0
    6    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.03 ms | 1386 KiB | 19 Q