3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tpl = "The side bar{l:{khalid}} s a Cheatsheet,{l:{test}} full Reference, and Help. You can also Save & Share with the Community, and {{kaitbellahs}}view patterns you{{eu mesmo}} create or favorite in My Patterns. Global #kha; print #kha; Global #main; print #main-['kha']; Global #main; print #main-['kha']; Global #main; print #main-['kha']; Global #kha1; print #1kha; Global #1kha; print #kha1; <!DOCTYPE html> <html <?php if( <?php GLOBAL #main;print #main->conf['amp']; ?> ){ print \"amp\"; } ?> lang=\" <?php GLOBAL #main;print #main->lng['lng']; ?> \"> <head> Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain d"; //$globals = array(); $tpl = preg_replace("/if\( \<\?php (.*?)GLOBAL.*?\;print (.*?); \?\>+/im", "if(\$1", $tpl); //$globals = array_unique(array_map("StrToLower", $globals[0])); var_dump($tpl);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6WkGv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $tpl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'The+side+bar%7Bl%3A%7Bkhalid%7D%7D+s+a+Cheatsheet%2C%7Bl%3A%7Btest%7D%7D+full+Reference%2C+and+Help.+You+can+also+Save+%26+Share+with+the+Community%2C+and+%7B%7Bkaitbellahs%7D%7Dview+patterns+you%7B%7Beu+mesmo%7D%7D+create+or+favorite+in+My+Patterns.%0A+Global+%23kha%3B+print+%23kha%3B+%0A+Global+%23main%3B+print+%23main-%5B%27kha%27%5D%3B++Global+%23main%3B+print+%23main-%5B%27kha%27%5D%3B++Global+%23main%3B+print+%23main-%5B%27kha%27%5D%3B++Global+%23kha1%3B+print+%231kha%3B++Global+%231kha%3B+print+%23kha1%3B+%0A%3C%21DOCTYPE+html%3E%0A%3Chtml++%3C%3Fphp+if%28+%3C%3Fphp+GLOBAL+%23main%3Bprint+%23main-%3Econf%5B%27amp%27%5D%3B+%3F%3E+%29%7B+print+%22amp%22%3B+%7D+%3F%3E++lang%3D%22+%3C%3Fphp+GLOBAL+%23main%3Bprint+%23main-%3Elng%5B%27lng%27%5D%3B+%3F%3E+%22%3E%0A%0A%3Chead%3E%0AExplore+results+with+the+Tools+below.+Replace+%26+List+output+custom+results.+Details+lists+capture+groups.+Explain+d'
   11     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2Fif%5C%28+%5C%3C%5C%3Fphp+%28.%2A%3F%29GLOBAL.%2A%3F%5C%3Bprint+%28.%2A%3F%29%3B+%5C%3F%5C%3E%2B%2Fim'
          3        SEND_VAL                                                 'if%28%241'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   17     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.26 ms | 1386 KiB | 17 Q