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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.86 ms | 1392 KiB | 19 Q