3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cakedata = [ ["shape" => "Heart", "flavor" => "Chocolate", "toppings" => "Cookies"], ["shape" => "Rectangle", "flavor" => "Vanilla", "toppings" => "Spun-sugar Flowers"], ["shape" => "Square", "flavor" => "Lemon", "toppings" => "Mini Chocolate Candies"], ["shape" => "Round", "flavor" => "Cheesecake", "toppings" => "Marshmallows"] ]; $td = <<<'TD' <td><label><input type="radio" name="%1$s" value="%2$s" required>%2$s</label></td> TD; foreach ($cakedata as $row) { echo '<tr>'; foreach ($row as $attr => $value) { printf($td, htmlentities($attr), htmlentities($value)); } echo '</tr>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 23
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 20
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/AaBTF
function name:  (null)
number of ops:  25
compiled vars:  !0 = $cakedata, !1 = $td, !2 = $row, !3 = $value, !4 = $attr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, '++++%3Ctd%3E%3Clabel%3E%3Cinput+type%3D%22radio%22+name%3D%22%251%24s%22+value%3D%22%252%24s%22+required%3E%252%24s%3C%2Flabel%3E%3C%2Ftd%3E'
   14     2      > FE_RESET_R                                       $7      !0, ->23
          3    > > FE_FETCH_R                                               $7, !2, ->23
   15     4    >   ECHO                                                     '%3Ctr%3E'
   16     5      > FE_RESET_R                                       $8      !2, ->20
          6    > > FE_FETCH_R                                       ~9      $8, !3, ->20
          7    >   ASSIGN                                                   !4, ~9
   17     8        INIT_FCALL                                               'printf'
          9        SEND_VAR                                                 !1
         10        INIT_FCALL                                               'htmlentities'
         11        SEND_VAR                                                 !4
         12        DO_ICALL                                         $11     
         13        SEND_VAR                                                 $11
         14        INIT_FCALL                                               'htmlentities'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $12     
         17        SEND_VAR                                                 $12
         18        DO_ICALL                                                 
   16    19      > JMP                                                      ->6
         20    >   FE_FREE                                                  $8
   19    21        ECHO                                                     '%3C%2Ftr%3E'
   14    22      > JMP                                                      ->3
         23    >   FE_FREE                                                  $7
   20    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.21 ms | 1012 KiB | 15 Q