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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oeENh
function name:  (null)
number of ops:  24
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+base64_decode%28%5C%22ZWNobyAnYSc7%5C%22%29%3B%22%29%3B'
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
         16        ECHO                                                     '---'
         17        INIT_FCALL                                               'file_get_contents'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $9      
         20        ECHO                                                     $9
         21        ECHO                                                     '%3D%3D%3D'
         22        INCLUDE_OR_EVAL                                          !0, INCLUDE
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.64 ms | 1395 KiB | 19 Q