3v4l.org

run code in 300+ PHP versions simultaneously
<?php $settings = array( 'name' => array( 0 => 'Large Pouch', 1 => 'XL Pouch' ), 'size' => array( 0 => '9x14', 1 => '12x18' ), 'weight' => array( 0 => '10', 1 => '20' ), 'metro_manila_price' => array( 0 => '59', 1 => '79' ), 'luzvimin_price' => array( 0 => '89', 1 => '139' ) ); $shipping_options = array(); foreach ($settings['name'] as $key => $value) { $shipping_options[$key] = $settings['size'][$key] . " - $" . $settings['metro_manila_price'][$key]; } print_r($shipping_options);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/6GkjE
function name:  (null)
number of ops:  20
compiled vars:  !0 = $settings, !1 = $shipping_options, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   25     1        ASSIGN                                                   !1, <array>
   29     2        FETCH_DIM_R                                      ~6      !0, 'name'
          3      > FE_RESET_R                                       $7      ~6, ->15
          4    > > FE_FETCH_R                                       ~8      $7, !2, ->15
          5    >   ASSIGN                                                   !3, ~8
   30     6        FETCH_DIM_R                                      ~11     !0, 'size'
          7        FETCH_DIM_R                                      ~12     ~11, !3
          8        CONCAT                                           ~13     ~12, '+-+%24'
          9        FETCH_DIM_R                                      ~14     !0, 'metro_manila_price'
         10        FETCH_DIM_R                                      ~15     ~14, !3
         11        CONCAT                                           ~16     ~13, ~15
         12        ASSIGN_DIM                                               !1, !3
         13        OP_DATA                                                  ~16
   29    14      > JMP                                                      ->4
         15    >   FE_FREE                                                  $7
   34    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.2 ms | 1399 KiB | 15 Q