3v4l.org

run code in 300+ PHP versions simultaneously
<?php $idnameCli = array ( array ( 1, 'Name1' ) , array ( 3, 'Name2' ) , array ( 4, 'Name3' ) ); ?> <select name="client" onchange="this.form.submit()"> <option value="" disabled selected>--client--</option> <?php for ($i = 0; $i < count($idnameCli); $i++) { echo "<option value='".$idnameCli[$i][1]."'>". implode('',$idnameCli[$i]) ."</option>".PHP_EOL; } ?> </select>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
Branch analysis from position: 4
filename:       /in/TATGZ
function name:  (null)
number of ops:  23
compiled vars:  !0 = $idnameCli, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   22     1        ECHO                                                     '%3Cselect+name%3D%22client%22+onchange%3D%22this.form.submit%28%29%22%3E%0A++++%3Coption+value%3D%22%22+disabled+selected%3E--client--%3C%2Foption%3E%0A++++'
   25     2        ASSIGN                                                   !1, 0
          3      > JMP                                                      ->18
   26     4    >   FETCH_DIM_R                                      ~4      !0, !1
          5        FETCH_DIM_R                                      ~5      ~4, 1
          6        CONCAT                                           ~6      '%3Coption+value%3D%27', ~5
          7        CONCAT                                           ~7      ~6, '%27%3E'
          8        INIT_FCALL                                               'implode'
          9        SEND_VAL                                                 ''
         10        FETCH_DIM_R                                      ~8      !0, !1
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                         $9      
         13        CONCAT                                           ~10     ~7, $9
         14        CONCAT                                           ~11     ~10, '%3C%2Foption%3E'
         15        CONCAT                                           ~12     ~11, '%0A'
         16        ECHO                                                     ~12
   25    17        PRE_INC                                                  !1
         18    >   COUNT                                            ~14     !0
         19        IS_SMALLER                                               !1, ~14
         20      > JMPNZ                                                    ~15, ->4
   29    21    >   ECHO                                                     '%3C%2Fselect%3E'
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.98 ms | 1395 KiB | 15 Q