3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp1=tempnam("/tmp", "prvieval"); $tmp2=tempnam("/tmp", "drugieval"); $cntnt='base64_decode("ZWNobyAnYSc7")'; file_put_contents($tmp1, '<?php file_put_contents("' . $tmp2 . '","<?php ' . chr(98).chr(97).chr(115).chr(101).chr(54).chr(52).chr(95).chr(100).chr(101).chr(99).chr(111).chr(100).chr(101).("ZWNobyAnYSc7") . ';");'); echo file_get_contents($tmp1); echo "-----"; include($tmp1); include($tmp2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kfZBN
function name:  (null)
number of ops:  40
compiled vars:  !0 = $tmp1, !1 = $tmp2, !2 = $cntnt
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                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        INIT_FCALL                                               'tempnam'
          6        SEND_VAL                                                 '%2Ftmp'
          7        SEND_VAL                                                 'drugieval'
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    5    10        ASSIGN                                                   !2, 'base64_decode%28%22ZWNobyAnYSc7%22%29'
    8    11        INIT_FCALL                                               'file_put_contents'
         12        SEND_VAR                                                 !0
         13        CONCAT                                           ~8      '%3C%3Fphp+++file_put_contents%28%22', !1
         14        CONCAT                                           ~9      ~8, '%22%2C%22%3C%3Fphp+'
         15        CONCAT                                           ~10     ~9, 'b'
         16        CONCAT                                           ~11     ~10, 'a'
         17        CONCAT                                           ~12     ~11, 's'
         18        CONCAT                                           ~13     ~12, 'e'
         19        CONCAT                                           ~14     ~13, '6'
         20        CONCAT                                           ~15     ~14, '4'
         21        CONCAT                                           ~16     ~15, '_'
         22        CONCAT                                           ~17     ~16, 'd'
         23        CONCAT                                           ~18     ~17, 'e'
         24        CONCAT                                           ~19     ~18, 'c'
         25        CONCAT                                           ~20     ~19, 'o'
         26        CONCAT                                           ~21     ~20, 'd'
         27        CONCAT                                           ~22     ~21, 'e'
         28        CONCAT                                           ~23     ~22, 'ZWNobyAnYSc7'
         29        CONCAT                                           ~24     ~23, '%3B%22%29%3B'
         30        SEND_VAL                                                 ~24
         31        DO_ICALL                                                 
   11    32        INIT_FCALL                                               'file_get_contents'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                         $26     
         35        ECHO                                                     $26
         36        ECHO                                                     '-----'
   12    37        INCLUDE_OR_EVAL                                          !0, INCLUDE
   13    38        INCLUDE_OR_EVAL                                          !1, INCLUDE
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.45 ms | 1396 KiB | 19 Q