3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.8 ms | 1396 KiB | 27 Q