3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.4 ms | 1395 KiB | 21 Q