3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = <<<EOF #include<math.h> #include<stdio.h> int main() EOF; $str = preg_replace('/(#include<[^>]+>)/', '<span class="header">$1</span>', $str); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TJUOu
function name:  (null)
number of ops:  6
compiled vars:  !0 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%23include%3Cmath.h%3E%0A%23include%3Cstdio.h%3E%0A%0Aint+main%28%29'
    9     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%28%23include%3C%5B%5E%3E%5D%2B%3E%29%2F', '%3Cspan+class%3D%22header%22%3E%241%3C%2Fspan%3E'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~2
   10     4        ECHO                                                         !0
   11     5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.01 ms | 474 KiB | 7 Q