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/mydir/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 = 62) Position 1 = -2
filename:       /in/rloXU
function name:  (null)
number of ops:  19
compiled vars:  none
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                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
    2     9        INIT_FCALL                                               'phpversion'
         10        DO_ICALL                                         $3      
         11        IS_NOT_EQUAL                                             $3, '5.4.8'
         12      > JMPZ                                                     ~4, ->14
         13    > > EXIT                                                     
    5    14    >   INIT_FCALL                                               'filesize'
         15        SEND_VAL                                                 '%2Ftmp%2Fmydir%2Fnls3'
         16        DO_ICALL                                         $5      
         17        ECHO                                                     $5
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.72 ms | 1395 KiB | 23 Q