3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['sitename'] = 'http://google.com'; if(substr($_POST['sitename'], 0, 4) == "http") { $url = $_POST['sitename']; $lines = file($url); foreach($lines as $line_num => $line) { //echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br />\n"; $countsym = htmlspecialchars($line); echo 'strlen = ' . mb_strlen($countsym, 'utf-8') . '<br>'; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 35
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 34
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 34
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
Branch analysis from position: 35
filename:       /in/VVU62
function name:  (null)
number of ops:  36
compiled vars:  !0 = $url, !1 = $lines, !2 = $line, !3 = $line_num, !4 = $countsym
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $5      '_POST'
          1        ASSIGN_DIM                                               $5, 'sitename'
          2        OP_DATA                                                  'http%3A%2F%2Fgoogle.com'
    5     3        INIT_FCALL                                               'substr'
          4        FETCH_R                      global              ~7      '_POST'
          5        FETCH_DIM_R                                      ~8      ~7, 'sitename'
          6        SEND_VAL                                                 ~8
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 4
          9        DO_ICALL                                         $9      
         10        IS_EQUAL                                                 $9, 'http'
         11      > JMPZ                                                     ~10, ->35
    6    12    >   FETCH_R                      global              ~11     '_POST'
         13        FETCH_DIM_R                                      ~12     ~11, 'sitename'
         14        ASSIGN                                                   !0, ~12
    7    15        INIT_FCALL                                               'file'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $14     
         18        ASSIGN                                                   !1, $14
    8    19      > FE_RESET_R                                       $16     !1, ->34
         20    > > FE_FETCH_R                                       ~17     $16, !2, ->34
         21    >   ASSIGN                                                   !3, ~17
   10    22        INIT_FCALL                                               'htmlspecialchars'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $19     
         25        ASSIGN                                                   !4, $19
   11    26        INIT_FCALL                                               'mb_strlen'
         27        SEND_VAR                                                 !4
         28        SEND_VAL                                                 'utf-8'
         29        DO_ICALL                                         $21     
         30        CONCAT                                           ~22     'strlen+%3D+', $21
         31        CONCAT                                           ~23     ~22, '%3Cbr%3E'
         32        ECHO                                                     ~23
    8    33      > JMP                                                      ->20
         34    >   FE_FREE                                                  $16
   13    35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.28 ms | 1401 KiB | 21 Q