3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret = 9292929; $data = "I will write the payload code in this pice of content <?php global $secret = 111111; ?>that is sent to you previously"; $trigger = ".*/e\0"; preg_match( "/$trigger/i", $data, $matches ); var_dump( $secret );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FDHR5
function name:  (null)
number of ops:  18
compiled vars:  !0 = $secret, !1 = $data, !2 = $trigger, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 9292929
    5     1        ROPE_INIT                                     3  ~6      'I+will+write+the+payload+code+in+this+pice+of+content+%3C%3Fphp+global++'
          2        ROPE_ADD                                      1  ~6      ~6, !0
          3        ROPE_END                                      2  ~5      ~6, '+%3D+111111%3B+%3F%3Ethat+is+sent+to+you+previously'
          4        ASSIGN                                                   !1, ~5
    6     5        ASSIGN                                                   !2, '.%2A%2Fe%00'
    8     6        INIT_FCALL                                               'preg_match'
          7        ROPE_INIT                                     3  ~11     '%2F'
          8        ROPE_ADD                                      1  ~11     ~11, !2
          9        ROPE_END                                      2  ~10     ~11, '%2Fi'
         10        SEND_VAL                                                 ~10
         11        SEND_VAR                                                 !1
         12        SEND_REF                                                 !3
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.3 ms | 1394 KiB | 17 Q