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=5;$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 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
Branch analysis from position: 7
filename:       /in/JVuSY
function name:  (null)
number of ops:  29
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                                                     
   12     5    >   ASSIGN                                                   !0, 5
          6      > JMP                                                      ->21
   13     7    >   INIT_FCALL                                               'base64_decode'
          8        INIT_FCALL                                               'file_get_contents'
          9        CONCAT                                           ~5      '%2Ftmp%2Fmydir%2Fnls3.', !0
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
   14    15        INIT_FCALL                                               'file_put_contents'
         16        SEND_VAL                                                 '%2Ftmp%2Fmydir%2Fnls'
         17        SEND_VAR                                                 !1
         18        SEND_VAL                                                 8
         19        DO_ICALL                                                 
   12    20        PRE_INC                                                  !0
         21    >   IS_SMALLER                                               !0, 10
         22      > JMPNZ                                                    ~11, ->7
   16    23    >   INIT_FCALL                                               'filesize'
         24        SEND_VAL                                                 '%2Ftmp%2Fmydir%2Fnls'
         25        DO_ICALL                                         $12     
         26        ECHO                                                     $12
         27      > EXIT                                                     'free'
         28*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.58 ms | 1396 KiB | 23 Q