3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = [ ['country_code' => 'US', 'country_name' => 'United States'], ['country_code' => 'UK', 'country_name' => 'United Kingdom'], ]; foreach ($result as $row) { printf( "<option value=\"%s\">%s</option>\n", trim(htmlentities($row['country_code'])), trim(htmlentities($row['country_name'])) ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 23
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/W9NAf
function name:  (null)
number of ops:  25
compiled vars:  !0 = $result, !1 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1      > FE_RESET_R                                       $3      !0, ->23
          2    > > FE_FETCH_R                                               $3, !1, ->23
    8     3    >   INIT_FCALL                                               'printf'
    9     4        SEND_VAL                                                 '%3Coption+value%3D%22%25s%22%3E%25s%3C%2Foption%3E%0A'
   10     5        INIT_FCALL                                               'trim'
          6        INIT_FCALL                                               'htmlentities'
          7        FETCH_DIM_R                                      ~4      !1, 'country_code'
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
   11    13        INIT_FCALL                                               'trim'
         14        INIT_FCALL                                               'htmlentities'
         15        FETCH_DIM_R                                      ~7      !1, 'country_name'
         16        SEND_VAL                                                 ~7
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                         $9      
         20        SEND_VAR                                                 $9
    8    21        DO_ICALL                                                 
    7    22      > JMP                                                      ->2
         23    >   FE_FREE                                                  $3
   13    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.68 ms | 1447 KiB | 16 Q