3v4l.org

run code in 300+ PHP versions simultaneously
<?php $customerDetails = array(); $customerDetails['billing']['firstname'] = "Sid"; $customerDetails['billing']['middlename'] = "R"; $customerDetails['billing']['lastname'] = "McLaughlin"; $customerDetails['billing']['company'] = NULL; foreach ($customerDetails['billing'] as $key => $value) { echo "Key: $key; Value: $value<br />\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 24
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/XFSYc
function name:  (null)
number of ops:  26
compiled vars:  !0 = $customerDetails, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $4      !0, 'billing'
          2        ASSIGN_DIM                                               $4, 'firstname'
          3        OP_DATA                                                  'Sid'
    5     4        FETCH_DIM_W                                      $6      !0, 'billing'
          5        ASSIGN_DIM                                               $6, 'middlename'
          6        OP_DATA                                                  'R'
    6     7        FETCH_DIM_W                                      $8      !0, 'billing'
          8        ASSIGN_DIM                                               $8, 'lastname'
          9        OP_DATA                                                  'McLaughlin'
    7    10        FETCH_DIM_W                                      $10     !0, 'billing'
         11        ASSIGN_DIM                                               $10, 'company'
         12        OP_DATA                                                  null
    9    13        FETCH_DIM_R                                      ~12     !0, 'billing'
         14      > FE_RESET_R                                       $13     ~12, ->24
         15    > > FE_FETCH_R                                       ~14     $13, !1, ->24
         16    >   ASSIGN                                                   !2, ~14
   10    17        ROPE_INIT                                     5  ~17     'Key%3A+'
         18        ROPE_ADD                                      1  ~17     ~17, !2
         19        ROPE_ADD                                      2  ~17     ~17, '%3B+Value%3A+'
         20        ROPE_ADD                                      3  ~17     ~17, !1
         21        ROPE_END                                      4  ~16     ~17, '%3Cbr+%2F%3E%0A'
         22        ECHO                                                     ~16
    9    23      > JMP                                                      ->15
         24    >   FE_FREE                                                  $13
   11    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.12 ms | 1394 KiB | 13 Q