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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.54 ms | 1400 KiB | 19 Q