3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arraydata = [ "thumbnail" => [ "width" => 150, "height" => 150, "crop" => 1 ], "medium" => [ "width" => 300, "height" => 300, "crop" => '' ], "medium_large" => [ "width" => 1024, "height" => 1024, "crop" => '' ], "large" => [ "width" => 2000, "height" => 1200, "crop" => 1 ], "twentyseventeen-thumbnail-avatar" => [ "width" => 2000, "height" => 1200, "crop" => 1 ], "twentyseventeen-thumbnail-avatar" => [ "width" => 100, "height" => 100, "crop" => 1 ] ]; foreach($arraydata as $key => $value) { echo "key: $key width: ${value['width']} height: ${value['height']}\n"; echo "key: " . $key . " width: " . $value['width'] . " height: " . $value['height'] . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 24
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 24
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/gkcXi
function name:  (null)
number of ops:  26
compiled vars:  !0 = $arraydata, !1 = $value, !2 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   37     1      > FE_RESET_R                                           $4      !0, ->24
          2    > > FE_FETCH_R                                           ~5      $4, !1, ->24
          3    >   ASSIGN                                                       !2, ~5
   38     4        ROPE_INIT                                         7  ~10     'key%3A+'
          5        ROPE_ADD                                          1  ~10     ~10, !2
          6        ROPE_ADD                                          2  ~10     ~10, '+width%3A+'
          7        FETCH_DIM_R                                          ~7      !1, 'width'
          8        ROPE_ADD                                          3  ~10     ~10, ~7
          9        ROPE_ADD                                          4  ~10     ~10, '+height%3A+'
         10        FETCH_DIM_R                                          ~8      !1, 'height'
         11        ROPE_ADD                                          5  ~10     ~10, ~8
         12        ROPE_END                                          6  ~9      ~10, '%0A'
         13        ECHO                                                         ~9
   39    14        CONCAT                                               ~14     'key%3A+', !2
         15        CONCAT                                               ~15     ~14, '+width%3A+'
         16        FETCH_DIM_R                                          ~16     !1, 'width'
         17        CONCAT                                               ~17     ~15, ~16
         18        CONCAT                                               ~18     ~17, '+height%3A+'
         19        FETCH_DIM_R                                          ~19     !1, 'height'
         20        CONCAT                                               ~20     ~18, ~19
         21        CONCAT                                               ~21     ~20, '%0A'
         22        ECHO                                                         ~21
   37    23      > JMP                                                          ->2
         24    >   FE_FREE                                                      $4
   40    25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.7 ms | 2809 KiB | 13 Q