3v4l.org

run code in 500+ 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 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
Branch analysis from position: 4
filename:       /in/TATGZ
function name:  (null)
number of ops:  20
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                                                          ->15
   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        FETCH_DIM_R                                          ~8      !0, !1
          9        FRAMELESS_ICALL_2                implode             ~9      '', ~8
         10        CONCAT                                               ~10     ~7, ~9
         11        CONCAT                                               ~11     ~10, '%3C%2Foption%3E'
         12        CONCAT                                               ~12     ~11, '%0A'
         13        ECHO                                                         ~12
   25    14        PRE_INC                                                      !1
         15    >   COUNT                                                ~14     !0
         16        IS_SMALLER                                                   !1, ~14
         17      > JMPNZ                                                        ~15, ->4
   29    18    >   ECHO                                                         '%3C%2Fselect%3E'
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.57 ms | 2354 KiB | 13 Q