3v4l.org

run code in 300+ PHP versions simultaneously
<?php $buffer = " %target:admin_media.php% %location:% \$showmedia_url = getURL( 'showmedia', 1 ); %end:% %insert:after% // ****** following line added by Showfolio mod ****** \$showfolio_url = getURL( 'showfolio', 1 ); %end:% "; // STANDARDIZE LINE ENDINGS $buffer = preg_replace( "#(?:\r\n|\r\r\n|[\r\n])#", "\r\n", $buffer ); // CREATE WORKING TABLE $parts = preg_split( "#^\s*%(\w+):#m", $buffer, NULL, PREG_SPLIT_OFFSET_CAPTURE|PREG_SPLIT_DELIM_CAPTURE ); print_r( $parts ); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jKupd
function name:  (null)
number of ops:  18
compiled vars:  !0 = $buffer, !1 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%0A%25target%3Aadmin_media.php%25%0A%25location%3A%25%0A%24showmedia_url+%3D+getURL%28+%27showmedia%27%2C+1+%29%3B%0A%25end%3A%25%0A%25insert%3Aafter%25%0A%0A%0A%0A%2F%2F+%2A%2A%2A%2A%2A%2A+following+line+added+by+Showfolio+mod+%2A%2A%2A%2A%2A%2A%0A%24showfolio_url+%3D+getURL%28+%27showfolio%27%2C+1+%29%3B%0A%0A%0A%0A%25end%3A%25%0A%0A'
   21     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%28%3F%3A%0D%0A%7C%0D%0D%0A%7C%5B%0D%0A%5D%29%23'
          3        SEND_VAL                                                 '%0D%0A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
   24     7        INIT_FCALL                                               'preg_split'
          8        SEND_VAL                                                 '%23%5E%5Cs%2A%25%28%5Cw%2B%29%3A%23m'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 null
         11        SEND_VAL                                                 6
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
   26    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   27    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.54 ms | 999 KiB | 16 Q