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($tmp1, ' file_put_contents(' . $tmp2 . ', \'<?php file_put_contents("\' . ' . $tmp3 . ' . \'","<?php \' . ' . $bb64 . '("'.$cntnt.'") . \';");\'); ' ); echo file_get_contents($tmp1); echo "-----"; include($tmp1); include($tmp2); include($tmp3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GfojR
function name:  (null)
number of ops:  38
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'
    9    17        INIT_FCALL                                               'file_put_contents'
         18        SEND_VAR                                                 !0
   11    19        CONCAT                                           ~13     '%0Afile_put_contents%28', !1
         20        CONCAT                                           ~14     ~13, '%2C+%27%3C%3Fphp+++file_put_contents%28%22%27+.+'
         21        CONCAT                                           ~15     ~14, !2
         22        CONCAT                                           ~16     ~15, '+.+%27%22%2C%22%3C%3Fphp+%27+.+'
         23        CONCAT                                           ~17     ~16, !4
         24        CONCAT                                           ~18     ~17, '%28%22'
         25        CONCAT                                           ~19     ~18, !3
         26        CONCAT                                           ~20     ~19, '%22%29+.+%27%3B%22%29%3B%27%29%3B%0A'
         27        SEND_VAL                                                 ~20
         28        DO_ICALL                                                 
   15    29        INIT_FCALL                                               'file_get_contents'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                         $22     
         32        ECHO                                                     $22
         33        ECHO                                                     '-----'
   16    34        INCLUDE_OR_EVAL                                          !0, INCLUDE
   17    35        INCLUDE_OR_EVAL                                          !1, INCLUDE
   18    36        INCLUDE_OR_EVAL                                          !2, INCLUDE
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.91 ms | 1396 KiB | 19 Q