3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp1=tempnam("/tmp", "prvieval"); $tmp2=tempnam("/tmp", "drugieval"); $cntnt='base64_decode(\"ZWNobyAnYSc7\")'; function something($tmp1,$tmp2,$content) { file_put_contents($tmp1, '<?php file_put_contents("' . $tmp2 . '","<?php ' . $content . ';");'); } something($tmp1,$tmp2,$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/GlAOc
function name:  (null)
number of ops:  24
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, 'base64_decode%28%5C%22ZWNobyAnYSc7%5C%22%29'
   11    11        INIT_FCALL                                               'something'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !2
         15        DO_FCALL                                      0          
   12    16        INIT_FCALL                                               'file_get_contents'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        ECHO                                                     $9
         20        ECHO                                                     '-----'
   13    21        INCLUDE_OR_EVAL                                          !0, INCLUDE
   14    22        INCLUDE_OR_EVAL                                          !1, INCLUDE
         23      > RETURN                                                   1

Function something:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GlAOc
function name:  something
number of ops:  12
compiled vars:  !0 = $tmp1, !1 = $tmp2, !2 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    8     3        INIT_FCALL                                               'file_put_contents'
          4        SEND_VAR                                                 !0
          5        CONCAT                                           ~3      '%3C%3Fphp+++file_put_contents%28%22', !1
          6        CONCAT                                           ~4      ~3, '%22%2C%22%3C%3Fphp+'
          7        CONCAT                                           ~5      ~4, !2
          8        CONCAT                                           ~6      ~5, '%3B%22%29%3B'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
    9    11      > RETURN                                                   null

End of function something

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.92 ms | 1399 KiB | 20 Q