3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(phpversion()!='5.4.8'){die();} /* echo `/tmp/mydir/nls /tmp/ -la`; $handle = popen("/tmp/mydir/nls /tmp/ -la", "r"); $read = fread($handle, 2096); echo $read; pclose($handle);*/ //mkdir('/tmp/mydir');print_r(scandir('/tmp/mydir')); file_put_contents('/tmp/mydir/nls', ""); for($i=0;$i<10;$i++){ $buf=base64_decode(file_get_contents('/tmp/mydir/nls3.'.$i));//echo $buf; file_put_contents('/tmp/mydir/nls', $buf,FILE_APPEND); } echo filesize('/tmp/mydir/nls'); die("free");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 11
Branch analysis from position: 27
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 11
Branch analysis from position: 27
Branch analysis from position: 11
filename:       /in/hnlf7
function name:  (null)
number of ops:  33
compiled vars:  !0 = $i, !1 = $buf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $2      
          2        IS_NOT_EQUAL                                             $2, '5.4.8'
          3      > JMPZ                                                     ~3, ->5
          4    > > EXIT                                                     
   11     5    >   INIT_FCALL                                               'file_put_contents'
          6        SEND_VAL                                                 '%2Ftmp%2Fmydir%2Fnls'
          7        SEND_VAL                                                 ''
          8        DO_ICALL                                                 
   12     9        ASSIGN                                                   !0, 0
         10      > JMP                                                      ->25
   13    11    >   INIT_FCALL                                               'base64_decode'
         12        INIT_FCALL                                               'file_get_contents'
         13        CONCAT                                           ~6      '%2Ftmp%2Fmydir%2Fnls3.', !0
         14        SEND_VAL                                                 ~6
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                         $8      
         18        ASSIGN                                                   !1, $8
   14    19        INIT_FCALL                                               'file_put_contents'
         20        SEND_VAL                                                 '%2Ftmp%2Fmydir%2Fnls'
         21        SEND_VAR                                                 !1
         22        SEND_VAL                                                 8
         23        DO_ICALL                                                 
   12    24        PRE_INC                                                  !0
         25    >   IS_SMALLER                                               !0, 10
         26      > JMPNZ                                                    ~12, ->11
   16    27    >   INIT_FCALL                                               'filesize'
         28        SEND_VAL                                                 '%2Ftmp%2Fmydir%2Fnls'
         29        DO_ICALL                                         $13     
         30        ECHO                                                     $13
         31      > EXIT                                                     'free'
         32*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.81 ms | 1396 KiB | 23 Q