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/JSK0F
function name:  (null)
number of ops:  27
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        CONCAT                                           ~10     ~9, 'base64_decode%28%22ZWNobyAnYSc7%22%29'
         16        CONCAT                                           ~11     ~10, '%3B%22%29%3B'
         17        SEND_VAL                                                 ~11
         18        DO_ICALL                                                 
   11    19        INIT_FCALL                                               'file_get_contents'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $13     
         22        ECHO                                                     $13
         23        ECHO                                                     '-----'
   12    24        INCLUDE_OR_EVAL                                          !0, INCLUDE
   13    25        INCLUDE_OR_EVAL                                          !1, INCLUDE
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.18 ms | 1395 KiB | 19 Q