3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars = array( array( "car" => "Ferrari", "model" => "Testarossa", "gearbox" => "Manual 5 Shift", "designer" => "Battista Pininfarina", "engine" => array( "HP" => 390, "Cylinders" => 12 ) ) ); foreach($cars as $details){ echo "<ul style=\"margin-bottom:10px;\">\n"; foreach($details as $key=>$item){ echo "\t<li><b>",ucfirst($key),":</b>"; if(!is_array($item)){ echo " $item</li>\n"; }else{ echo "\n\t\t<ul>\n"; foreach($item as $subkey=>$subval){ echo "\t\t\t<li><b>$subkey:</b> $subval</li>\n"; } echo "\t\t</ul>\n"; echo "\t</li>\n"; } } echo "</ul>\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 39
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 39
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 36
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 36
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 21
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 32
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 32
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 32
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 36
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
filename:       /in/34S23
function name:  (null)
number of ops:  41
compiled vars:  !0 = $cars, !1 = $details, !2 = $item, !3 = $key, !4 = $subval, !5 = $subkey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   15     1      > FE_RESET_R                                       $7      !0, ->39
          2    > > FE_FETCH_R                                               $7, !1, ->39
   16     3    >   ECHO                                                     '%3Cul+style%3D%22margin-bottom%3A10px%3B%22%3E%0A'
   17     4      > FE_RESET_R                                       $8      !1, ->36
          5    > > FE_FETCH_R                                       ~9      $8, !2, ->36
          6    >   ASSIGN                                                   !3, ~9
   18     7        ECHO                                                     '%09%3Cli%3E%3Cb%3E'
          8        INIT_FCALL                                               'ucfirst'
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                         $11     
         11        ECHO                                                     $11
         12        ECHO                                                     '%3A%3C%2Fb%3E'
   19    13        TYPE_CHECK                                  128  ~12     !2
         14        BOOL_NOT                                         ~13     ~12
         15      > JMPZ                                                     ~13, ->21
   20    16    >   ROPE_INIT                                     3  ~15     '+'
         17        ROPE_ADD                                      1  ~15     ~15, !2
         18        ROPE_END                                      2  ~14     ~15, '%3C%2Fli%3E%0A'
         19        ECHO                                                     ~14
   19    20      > JMP                                                      ->35
   22    21    >   ECHO                                                     '%0A%09%09%3Cul%3E%0A'
   23    22      > FE_RESET_R                                       $17     !2, ->32
         23    > > FE_FETCH_R                                       ~18     $17, !4, ->32
         24    >   ASSIGN                                                   !5, ~18
   24    25        ROPE_INIT                                     5  ~21     '%09%09%09%3Cli%3E%3Cb%3E'
         26        ROPE_ADD                                      1  ~21     ~21, !5
         27        ROPE_ADD                                      2  ~21     ~21, '%3A%3C%2Fb%3E+'
         28        ROPE_ADD                                      3  ~21     ~21, !4
         29        ROPE_END                                      4  ~20     ~21, '%3C%2Fli%3E%0A'
         30        ECHO                                                     ~20
   23    31      > JMP                                                      ->23
         32    >   FE_FREE                                                  $17
   26    33        ECHO                                                     '%09%09%3C%2Ful%3E%0A'
   27    34        ECHO                                                     '%09%3C%2Fli%3E%0A'
   17    35    > > JMP                                                      ->5
         36    >   FE_FREE                                                  $8
   30    37        ECHO                                                     '%3C%2Ful%3E%0A'
   15    38      > JMP                                                      ->2
         39    >   FE_FREE                                                  $7
   31    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.05 ms | 1015 KiB | 14 Q