3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=array("ip","icmp","ggp","tcp", "egp","pup","udp","hmp","xns-idp", "rdp","rvd" ); //Reads the names of protocols into an array.. for($i=0;$i<11;$i++) { $proname=$arr[$i]; echo $proname .":", getprotobyname ($proname)."<br />\n"; } $format = "%6s %s\n<br />"; for ($number = 0; $number < 255; $number++) { if (getprotobynumber ($number)) printf ($format, " $number-->", getprotobynumber ($number)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 18
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 33
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 18
Branch analysis from position: 36
Branch analysis from position: 18
Branch analysis from position: 33
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/GcFcF
function name:  (null)
number of ops:  37
compiled vars:  !0 = $arr, !1 = $i, !2 = $proname, !3 = $format, !4 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->13
   10     3    >   FETCH_DIM_R                                      ~7      !0, !1
          4        ASSIGN                                                   !2, ~7
   11     5        CONCAT                                           ~9      !2, '%3A'
          6        ECHO                                                     ~9
          7        INIT_FCALL                                               'getprotobyname'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $10     
         10        CONCAT                                           ~11     $10, '%3Cbr+%2F%3E%0A'
         11        ECHO                                                     ~11
    8    12        PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, 11
         14      > JMPNZ                                                    ~13, ->3
   15    15    >   ASSIGN                                                   !3, '%256s+%25s%0A%3Cbr+%2F%3E'
   16    16        ASSIGN                                                   !4, 0
         17      > JMP                                                      ->34
   18    18    >   INIT_FCALL                                               'getprotobynumber'
         19        SEND_VAR                                                 !4
         20        DO_ICALL                                         $16     
         21      > JMPZ                                                     $16, ->33
   20    22    >   INIT_FCALL                                               'printf'
         23        SEND_VAR                                                 !3
         24        ROPE_INIT                                     3  ~18     '+'
         25        ROPE_ADD                                      1  ~18     ~18, !4
         26        ROPE_END                                      2  ~17     ~18, '--%3E'
         27        SEND_VAL                                                 ~17
         28        INIT_FCALL                                               'getprotobynumber'
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                         $20     
         31        SEND_VAR                                                 $20
         32        DO_ICALL                                                 
   16    33    >   PRE_INC                                                  !4
         34    >   IS_SMALLER                                               !4, 255
         35      > JMPNZ                                                    ~23, ->18
   21    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.11 ms | 1405 KiB | 19 Q