3v4l.org

run code in 300+ PHP versions simultaneously
<?php function display_form($fields) { foreach ($fields as $field) {?> <label><?=$field['label']?> <input type="<?=$field['type']?>" name="<?=$field['name']?>" value="<?=$field['value']?>" /> </label> <?php } } display_form( array( array( "type" => "text", "name" => "first_name", "value" => "", "label" => "First Name" ), array( "type" => "text", "name" => "last_name", "value" => "", "label" => "Last Name" ), array( "type" => "email", "name" => "email", "value" => "", "label" => "Email" ), array( "type" => "number", "name" => "extension", "value" => "", "label" => "Extension" ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I8ujs
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'display_form'
   15     1        SEND_VAL                                                 <array>
   12     2        DO_FCALL                                      0          
   39     3      > RETURN                                                   1

Function display_form:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/I8ujs
function name:  display_form
number of ops:  19
compiled vars:  !0 = $fields, !1 = $field
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1      > FE_RESET_R                                       $2      !0, ->17
          2    > > FE_FETCH_R                                               $2, !1, ->17
    5     3    >   ECHO                                                     '++++%3Clabel%3E'
          4        FETCH_DIM_R                                      ~3      !1, 'label'
          5        ECHO                                                     ~3
    6     6        ECHO                                                     '++++++++%3Cinput+type%3D%22'
          7        FETCH_DIM_R                                      ~4      !1, 'type'
          8        ECHO                                                     ~4
          9        ECHO                                                     '%22+name%3D%22'
         10        FETCH_DIM_R                                      ~5      !1, 'name'
         11        ECHO                                                     ~5
         12        ECHO                                                     '%22+value%3D%22'
         13        FETCH_DIM_R                                      ~6      !1, 'value'
         14        ECHO                                                     ~6
         15        ECHO                                                     '%22+%2F%3E%0A++++%3C%2Flabel%3E%0A'
    4    16      > JMP                                                      ->2
         17    >   FE_FREE                                                  $2
   10    18      > RETURN                                                   null

End of function display_form

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.97 ms | 999 KiB | 14 Q