3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp1=tempnam("/tmp", "prvieval"); $tmp2=tempnam("/tmp", "drugieval"); $tmp3=tempnam("/tmp","trecieval"); $cntnt="ZWNobyAnYSc7"; $bb64="base64_decode"; file_put_contents($tmp2, '<?php file_put_contents("' . $tmp3 . '","<?php ' . base64_decode("'.$cntnt.'") . ';");'); echo file_get_contents($tmp2); echo "-----"; include($tmp2); include($tmp3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GQibM
function name:  (null)
number of ops:  39
compiled vars:  !0 = $tmp1, !1 = $tmp2, !2 = $tmp3, !3 = $cntnt, !4 = $bb64
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'tempnam'
          1        SEND_VAL                                                 '%2Ftmp'
          2        SEND_VAL                                                 'prvieval'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    4     5        INIT_FCALL                                               'tempnam'
          6        SEND_VAL                                                 '%2Ftmp'
          7        SEND_VAL                                                 'drugieval'
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
    5    10        INIT_FCALL                                               'tempnam'
         11        SEND_VAL                                                 '%2Ftmp'
         12        SEND_VAL                                                 'trecieval'
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    6    15        ASSIGN                                                   !3, 'ZWNobyAnYSc7'
    7    16        ASSIGN                                                   !4, 'base64_decode'
   10    17        INIT_FCALL                                               'file_put_contents'
         18        SEND_VAR                                                 !1
         19        CONCAT                                           ~13     '%3C%3Fphp+++file_put_contents%28%22', !2
         20        CONCAT                                           ~14     ~13, '%22%2C%22%3C%3Fphp+'
         21        INIT_FCALL                                               'base64_decode'
         22        ROPE_INIT                                     3  ~16     '%27.'
         23        ROPE_ADD                                      1  ~16     ~16, !3
         24        ROPE_END                                      2  ~15     ~16, '.%27'
         25        SEND_VAL                                                 ~15
         26        DO_ICALL                                         $18     
         27        CONCAT                                           ~19     ~14, $18
         28        CONCAT                                           ~20     ~19, '%3B%22%29%3B'
         29        SEND_VAL                                                 ~20
         30        DO_ICALL                                                 
   13    31        INIT_FCALL                                               'file_get_contents'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                         $22     
         34        ECHO                                                     $22
         35        ECHO                                                     '-----'
   14    36        INCLUDE_OR_EVAL                                          !1, INCLUDE
   15    37        INCLUDE_OR_EVAL                                          !2, INCLUDE
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.21 ms | 1396 KiB | 21 Q