3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{"Name":" Jim", "ID":"23", "Age": "0"},{"Name":" Bob", "ID":"53", "Age": "0"}]'; $decode = json_decode($json, false); echo'<select>'; foreach($decode as $key) { echo '<option value="'.htmlspecialchars($key->Name).'"></option>'; } echo'</select>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/jmdoq
function name:  (null)
number of ops:  20
compiled vars:  !0 = $json, !1 = $decode, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%7B%22Name%22%3A%22+Jim%22%2C+%22ID%22%3A%2223%22%2C+%22Age%22%3A+%220%22%7D%2C%7B%22Name%22%3A%22+Bob%22%2C+%22ID%22%3A%2253%22%2C+%22Age%22%3A+%220%22%7D%5D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <false>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        ECHO                                                     '%3Cselect%3E'
    7     7      > FE_RESET_R                                       $6      !1, ->17
          8    > > FE_FETCH_R                                               $6, !2, ->17
    8     9    >   INIT_FCALL                                               'htmlspecialchars'
         10        FETCH_OBJ_R                                      ~7      !2, 'Name'
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $8      
         13        CONCAT                                           ~9      '%3Coption+value%3D%22', $8
         14        CONCAT                                           ~10     ~9, '%22%3E%3C%2Foption%3E'
         15        ECHO                                                     ~10
    7    16      > JMP                                                      ->8
         17    >   FE_FREE                                                  $6
   10    18        ECHO                                                     '%3C%2Fselect%3E'
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.64 ms | 1400 KiB | 17 Q