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"; }
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 = 62) Position 1 = -2
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/j6teO
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $i, !2 = $proname
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                                      ~5      !0, !1
          4        ASSIGN                                                   !2, ~5
   11     5        CONCAT                                           ~7      !2, '%3A'
          6        ECHO                                                     ~7
          7        INIT_FCALL                                               'getprotobyname'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $8      
         10        CONCAT                                           ~9      $8, '%3Cbr+%2F%3E%0A'
         11        ECHO                                                     ~9
    8    12        PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, 11
         14      > JMPNZ                                                    ~11, ->3
   12    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.46 ms | 1395 KiB | 15 Q