3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp1=tempnam("/tmp", "prvieval"); $tmp2=tempnam("/tmp", "drugieval"); $cntnt="ZWNobyAnYSc7"; file_put_contents($tmp1, '<?php file_put_contents("' . $tmp2 . '","<?php ' . base64_decode("'.$cntnt.'") . ';");'); 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/qN0oC
function name:  (null)
number of ops:  33
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, 'ZWNobyAnYSc7'
    7    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        INIT_FCALL                                               'base64_decode'
         16        ROPE_INIT                                     3  ~11     '%27.'
         17        ROPE_ADD                                      1  ~11     ~11, !2
         18        ROPE_END                                      2  ~10     ~11, '.%27'
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                         $13     
         21        CONCAT                                           ~14     ~9, $13
         22        CONCAT                                           ~15     ~14, '%3B%22%29%3B'
         23        SEND_VAL                                                 ~15
         24        DO_ICALL                                                 
   10    25        INIT_FCALL                                               'file_get_contents'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $17     
         28        ECHO                                                     $17
         29        ECHO                                                     '-----'
   11    30        INCLUDE_OR_EVAL                                          !0, INCLUDE
   12    31        INCLUDE_OR_EVAL                                          !1, INCLUDE
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.78 ms | 1400 KiB | 21 Q