3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp=tempnam("/tmp", "prvieval"); $tmp1=tempnam("/tmp", "drugieval"); file_put_contents($tmp, '<?php file_put_contents("' . $tmp1 . '","<?php ' . base64_decode("ZWNobyAnYSc7") . ';");'); echo "---" ; echo file_get_contents($tmp); echo "===";include($tmp); echo "xxxxxxx";echo file_get_contents($tmp1); echo "yyyyy";include($tmp1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BeB7n
function name:  (null)
number of ops:  36
compiled vars:  !0 = $tmp, !1 = $tmp1
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                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'tempnam'
          6        SEND_VAL                                                 '%2Ftmp'
          7        SEND_VAL                                                 'drugieval'
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    6    10        INIT_FCALL                                               'file_put_contents'
         11        SEND_VAR                                                 !0
         12        CONCAT                                           ~6      '%3C%3Fphp+++file_put_contents%28%22', !1
         13        CONCAT                                           ~7      ~6, '%22%2C%22%3C%3Fphp+'
         14        INIT_FCALL                                               'base64_decode'
         15        SEND_VAL                                                 'ZWNobyAnYSc7'
         16        DO_ICALL                                         $8      
         17        CONCAT                                           ~9      ~7, $8
         18        CONCAT                                           ~10     ~9, '%3B%22%29%3B'
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                                 
    7    21        ECHO                                                     '---'
         22        INIT_FCALL                                               'file_get_contents'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $12     
         25        ECHO                                                     $12
    8    26        ECHO                                                     '%3D%3D%3D'
         27        INCLUDE_OR_EVAL                                          !0, INCLUDE
    9    28        ECHO                                                     'xxxxxxx'
         29        INIT_FCALL                                               'file_get_contents'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                         $14     
         32        ECHO                                                     $14
   10    33        ECHO                                                     'yyyyy'
         34        INCLUDE_OR_EVAL                                          !1, INCLUDE
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.13 ms | 1396 KiB | 21 Q