3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(phpversion()!='5.4.8'){die();} echo `/tmp/mydir/nls /tmp/ -la`; //mkdir('/tmp/mydir');print_r(scandir('/tmp/mydir')); //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 = 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 = 62) Position 1 = -2
filename:       /in/XH3tP
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $0      
          2        IS_NOT_EQUAL                                             $0, '5.4.8'
          3      > JMPZ                                                     ~1, ->5
          4    > > EXIT                                                     
    4     5    >   INIT_FCALL                                               'shell_exec'
          6        SEND_VAL                                                 '%2Ftmp%2Fmydir%2Fnls+%2Ftmp%2F+-la'
          7        DO_ICALL                                         $2      
          8        ECHO                                                     $2
    9     9        INIT_FCALL                                               'filesize'
         10        SEND_VAL                                                 '%2Ftmp%2Fmydir%2Fnls3'
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.05 ms | 1386 KiB | 19 Q