3v4l.org

run code in 300+ PHP versions simultaneously
<?php $read_log = file($webserver_root_path.$file_path_log); foreach ($read_log as $num => $log_line) { if (preg_match("/OTL_PROV:S:/i", $log_line)) { $processing_line_num_from=$num; } if (preg_match("/OTL_PROV:E:/i", $log_line)) { $processing_line_num_to=$num; $result_code=1; $t=0; while ($processing_line_num_from<=$processing_line_num_to) { $errorlogtext.=$read_log[$processing_line_num_from]; if ($t==0) { $errorlogtext.="<font color=#AA0000>\n"; $t=1; } $processing_line_num_from++; } $errorlogtext.="</font>\n"; $prov_failure++; } } if ($prov_failure>0) { $fh = fopen($webserver_root_path.$file_path_errorlog, 'w') or die("can't open file"); $stringData = "$errorlogtext\n"; fwrite($fh, $stringData); fclose($fh); echo "Error log : <a href=".$public_includes_path."/fileviewer.php?file=".$file_path_errorlog." target=".$file_path_errorlog.">".$file_name_errorlog."</a> Full log : <a href=".$public_includes_path."/fileviewer.php?file=".$file_path_log." target=".$file_name_log.">".$file_name_log."</a> <font color=#DD0000>X Failure!!</font>\n"; echo "<input type=hidden name=prov_voice_failures[PROXY][$proxy_id][] value=\"Mass Provisioning returned errors!\">"; $provisioning_report.="Error log : <a href=".$public_includes_path."/fileviewer.php?file=".$file_path_errorlog." target=".$file_path_errorlog.">".$file_name_errorlog."</a> Full log : <a href=".$public_includes_path."/fileviewer.php?file=".$file_path_log." target=".$file_name_log.">".$file_name_log."</a> <font color=#DD0000>X Failure!!</font>\n"; } else { echo "<a href=".$public_includes_path."/fileviewer.php?file=".$file_path_log." target=".$file_name_log.">".$file_name_log."</a> <font color=#00AA00>&radic;</font>\n"; $provisioning_report.="<a href=".$public_includes_path."/fileviewer.php?file=".$file_path_log." target=".$file_name_log.">".$file_name_log."</a> <font color=#00AA00>&radic;</font>\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 35
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 35
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 34
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 23
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 23
Branch analysis from position: 32
Branch analysis from position: 23
Branch analysis from position: 29
Branch analysis from position: 34
Branch analysis from position: 14
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 96
Branch analysis from position: 38
2 jumps found. (Code = 47) Position 1 = 45, Position 2 = 47
Branch analysis from position: 45
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 114
Branch analysis from position: 114
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 96
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/5iGUd
function name:  (null)
number of ops:  115
compiled vars:  !0 = $read_log, !1 = $webserver_root_path, !2 = $file_path_log, !3 = $log_line, !4 = $num, !5 = $processing_line_num_from, !6 = $processing_line_num_to, !7 = $result_code, !8 = $t, !9 = $errorlogtext, !10 = $prov_failure, !11 = $fh, !12 = $file_path_errorlog, !13 = $stringData, !14 = $public_includes_path, !15 = $file_name_errorlog, !16 = $file_name_log, !17 = $proxy_id, !18 = $provisioning_report
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file'
          1        CONCAT                                           ~19     !1, !2
          2        SEND_VAL                                                 ~19
          3        DO_ICALL                                         $20     
          4        ASSIGN                                                   !0, $20
    3     5      > FE_RESET_R                                       $22     !0, ->35
          6    > > FE_FETCH_R                                       ~23     $22, !3, ->35
          7    >   ASSIGN                                                   !4, ~23
    5     8        INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%2FOTL_PROV%3AS%3A%2Fi'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $25     
         12      > JMPZ                                                     $25, ->14
    7    13    >   ASSIGN                                                   !5, !4
   10    14    >   INIT_FCALL                                               'preg_match'
         15        SEND_VAL                                                 '%2FOTL_PROV%3AE%3A%2Fi'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $27     
         18      > JMPZ                                                     $27, ->34
   12    19    >   ASSIGN                                                   !6, !4
   13    20        ASSIGN                                                   !7, 1
   14    21        ASSIGN                                                   !8, 0
   15    22      > JMP                                                      ->30
   17    23    >   FETCH_DIM_R                                      ~31     !0, !5
         24        ASSIGN_OP                                     8          !9, ~31
   18    25        IS_EQUAL                                                 !8, 0
         26      > JMPZ                                                     ~33, ->29
   20    27    >   ASSIGN_OP                                     8          !9, '%3Cfont+color%3D%23AA0000%3E%0A'
   21    28        ASSIGN                                                   !8, 1
   24    29    >   PRE_INC                                                  !5
   15    30    >   IS_SMALLER_OR_EQUAL                                      !5, !6
         31      > JMPNZ                                                    ~37, ->23
   26    32    >   ASSIGN_OP                                     8          !9, '%3C%2Ffont%3E%0A'
   27    33        PRE_INC                                                  !10
    3    34    > > JMP                                                      ->6
         35    >   FE_FREE                                                  $22
   32    36        IS_SMALLER                                               0, !10
         37      > JMPZ                                                     ~40, ->96
   34    38    >   INIT_FCALL                                               'fopen'
         39        CONCAT                                           ~41     !1, !12
         40        SEND_VAL                                                 ~41
         41        SEND_VAL                                                 'w'
         42        DO_ICALL                                         $42     
         43        ASSIGN                                           ~43     !11, $42
         44      > JMPNZ_EX                                         ~43     ~43, ->47
         45    > > EXIT                                                     'can%27t+open+file'
         46*       BOOL                                             ~43     <true>
   35    47    >   NOP                                                      
         48        FAST_CONCAT                                      ~44     !9, '%0A'
         49        ASSIGN                                                   !13, ~44
   36    50        INIT_FCALL                                               'fwrite'
         51        SEND_VAR                                                 !11
         52        SEND_VAR                                                 !13
         53        DO_ICALL                                                 
   37    54        INIT_FCALL                                               'fclose'
         55        SEND_VAR                                                 !11
         56        DO_ICALL                                                 
   39    57        CONCAT                                           ~48     'Error+log+%3A+%3Ca+href%3D', !14
         58        CONCAT                                           ~49     ~48, '%2Ffileviewer.php%3Ffile%3D'
         59        CONCAT                                           ~50     ~49, !12
         60        CONCAT                                           ~51     ~50, '+target%3D'
         61        CONCAT                                           ~52     ~51, !12
         62        CONCAT                                           ~53     ~52, '%3E'
         63        CONCAT                                           ~54     ~53, !15
         64        CONCAT                                           ~55     ~54, '%3C%2Fa%3E+Full+log+%3A+%3Ca+href%3D'
         65        CONCAT                                           ~56     ~55, !14
         66        CONCAT                                           ~57     ~56, '%2Ffileviewer.php%3Ffile%3D'
         67        CONCAT                                           ~58     ~57, !2
         68        CONCAT                                           ~59     ~58, '+target%3D'
         69        CONCAT                                           ~60     ~59, !16
         70        CONCAT                                           ~61     ~60, '%3E'
         71        CONCAT                                           ~62     ~61, !16
         72        CONCAT                                           ~63     ~62, '%3C%2Fa%3E+%3Cfont+color%3D%23DD0000%3EX+Failure%21%21%3C%2Ffont%3E%0A'
         73        ECHO                                                     ~63
   40    74        ROPE_INIT                                     3  ~65     '%3Cinput+type%3Dhidden+name%3Dprov_voice_failures%5BPROXY%5D%5B'
         75        ROPE_ADD                                      1  ~65     ~65, !17
         76        ROPE_END                                      2  ~64     ~65, '%5D%5B%5D+value%3D%22Mass+Provisioning+returned+errors%21%22%3E'
         77        ECHO                                                     ~64
   41    78        CONCAT                                           ~67     'Error+log+%3A+%3Ca+href%3D', !14
         79        CONCAT                                           ~68     ~67, '%2Ffileviewer.php%3Ffile%3D'
         80        CONCAT                                           ~69     ~68, !12
         81        CONCAT                                           ~70     ~69, '+target%3D'
         82        CONCAT                                           ~71     ~70, !12
         83        CONCAT                                           ~72     ~71, '%3E'
         84        CONCAT                                           ~73     ~72, !15
         85        CONCAT                                           ~74     ~73, '%3C%2Fa%3E+Full+log+%3A+%3Ca+href%3D'
         86        CONCAT                                           ~75     ~74, !14
         87        CONCAT                                           ~76     ~75, '%2Ffileviewer.php%3Ffile%3D'
         88        CONCAT                                           ~77     ~76, !2
         89        CONCAT                                           ~78     ~77, '+target%3D'
         90        CONCAT                                           ~79     ~78, !16
         91        CONCAT                                           ~80     ~79, '%3E'
         92        CONCAT                                           ~81     ~80, !16
         93        CONCAT                                           ~82     ~81, '%3C%2Fa%3E+%3Cfont+color%3D%23DD0000%3EX+Failure%21%21%3C%2Ffont%3E%0A'
         94        ASSIGN_OP                                     8          !18, ~82
         95      > JMP                                                      ->114
   45    96    >   CONCAT                                           ~84     '%3Ca+href%3D', !14
         97        CONCAT                                           ~85     ~84, '%2Ffileviewer.php%3Ffile%3D'
         98        CONCAT                                           ~86     ~85, !2
         99        CONCAT                                           ~87     ~86, '+target%3D'
        100        CONCAT                                           ~88     ~87, !16
        101        CONCAT                                           ~89     ~88, '%3E'
        102        CONCAT                                           ~90     ~89, !16
        103        CONCAT                                           ~91     ~90, '%3C%2Fa%3E+%3Cfont+color%3D%2300AA00%3E%26radic%3B%3C%2Ffont%3E%0A'
        104        ECHO                                                     ~91
   46   105        CONCAT                                           ~92     '%3Ca+href%3D', !14
        106        CONCAT                                           ~93     ~92, '%2Ffileviewer.php%3Ffile%3D'
        107        CONCAT                                           ~94     ~93, !2
        108        CONCAT                                           ~95     ~94, '+target%3D'
        109        CONCAT                                           ~96     ~95, !16
        110        CONCAT                                           ~97     ~96, '%3E'
        111        CONCAT                                           ~98     ~97, !16
        112        CONCAT                                           ~99     ~98, '%3C%2Fa%3E+%3Cfont+color%3D%2300AA00%3E%26radic%3B%3C%2Ffont%3E%0A'
        113        ASSIGN_OP                                     8          !18, ~99
   47   114    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.35 ms | 1408 KiB | 23 Q