3v4l.org

run code in 300+ PHP versions simultaneously
<?php highlight_file(__FILE__); $dir = 'sandbox/' . $_SERVER['REMOTE_ADDR']; if ( !file_exists($dir) ) mkdir($dir); chdir($dir); $args = $_GET['args']; for ( $i=0; $i<count($args); $i++ ){ if ( !preg_match('/^\w+$/', $args[$i]) ) exit(); } exec("/bin/orange " . implode(" ", $args)); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 23
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 31
Branch analysis from position: 30
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 23
Branch analysis from position: 35
Branch analysis from position: 23
Branch analysis from position: 15
filename:       /in/WAqHE
function name:  (null)
number of ops:  44
compiled vars:  !0 = $dir, !1 = $args, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'highlight_file'
          1        SEND_VAL                                                 '%2Fin%2FWAqHE'
          2        DO_ICALL                                                 
    4     3        FETCH_R                      global              ~4      '_SERVER'
          4        FETCH_DIM_R                                      ~5      ~4, 'REMOTE_ADDR'
          5        CONCAT                                           ~6      'sandbox%2F', ~5
          6        ASSIGN                                                   !0, ~6
    5     7        INIT_FCALL                                               'file_exists'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $8      
         10        BOOL_NOT                                         ~9      $8
         11      > JMPZ                                                     ~9, ->15
    6    12    >   INIT_FCALL                                               'mkdir'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
    7    15    >   INIT_FCALL                                               'chdir'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
    9    18        FETCH_R                      global              ~12     '_GET'
         19        FETCH_DIM_R                                      ~13     ~12, 'args'
         20        ASSIGN                                                   !1, ~13
   10    21        ASSIGN                                                   !2, 0
         22      > JMP                                                      ->32
   11    23    >   INIT_FCALL                                               'preg_match'
         24        SEND_VAL                                                 '%2F%5E%5Cw%2B%24%2F'
         25        FETCH_DIM_R                                      ~16     !1, !2
         26        SEND_VAL                                                 ~16
         27        DO_ICALL                                         $17     
         28        BOOL_NOT                                         ~18     $17
         29      > JMPZ                                                     ~18, ->31
   12    30    > > EXIT                                                     
   10    31    >   PRE_INC                                                  !2
         32    >   COUNT                                            ~20     !1
         33        IS_SMALLER                                               !2, ~20
         34      > JMPNZ                                                    ~21, ->23
   14    35    >   INIT_FCALL                                               'exec'
         36        INIT_FCALL                                               'implode'
         37        SEND_VAL                                                 '+'
         38        SEND_VAR                                                 !1
         39        DO_ICALL                                         $22     
         40        CONCAT                                           ~23     '%2Fbin%2Forange+', $22
         41        SEND_VAL                                                 ~23
         42        DO_ICALL                                                 
   15    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.42 ms | 1400 KiB | 27 Q