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<30;$i++){file_put_contents('/tmp/mydir/nls', base64_decode(file_get_contents('/tmp/mydir/nls3.'.$i)),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 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 11
Branch analysis from position: 26
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 11
Branch analysis from position: 26
Branch analysis from position: 11
filename:       /in/evOqI
function name:  (null)
number of ops:  32
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $1      
          2        IS_NOT_EQUAL                                             $1, '5.4.8'
          3      > JMPZ                                                     ~2, ->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                                                      ->24
         11    >   INIT_FCALL                                               'file_put_contents'
         12        SEND_VAL                                                 '%2Ftmp%2Fmydir%2Fnls'
         13        INIT_FCALL                                               'base64_decode'
         14        INIT_FCALL                                               'file_get_contents'
         15        CONCAT                                           ~5      '%2Ftmp%2Fmydir%2Fnls3.', !0
         16        SEND_VAL                                                 ~5
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                         $7      
         20        SEND_VAR                                                 $7
         21        SEND_VAL                                                 8
         22        DO_ICALL                                                 
         23        PRE_INC                                                  !0
         24    >   IS_SMALLER                                               !0, 30
         25      > JMPNZ                                                    ~10, ->11
   13    26    >   INIT_FCALL                                               'filesize'
         27        SEND_VAL                                                 '%2Ftmp%2Fmydir%2Fnls'
         28        DO_ICALL                                         $11     
         29        ECHO                                                     $11
         30      > EXIT                                                     'free'
         31*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.48 ms | 1388 KiB | 23 Q