3v4l.org

run code in 300+ PHP versions simultaneously
<?php $products = array( 'B004X6ABTM' => array( 'price' => '44.96', 'priceOld' => '59.22', 'percentageSaved' => 24, 'currency' => '$', 'currencyCode' => 'USD' ) ); $value = reset($products); echo $value["currency"]; echo $value["price"];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/foMUZ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $products, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'reset'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   14     5        FETCH_DIM_R                                      ~5      !1, 'currency'
          6        ECHO                                                     ~5
   15     7        FETCH_DIM_R                                      ~6      !1, 'price'
          8        ECHO                                                     ~6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.5 ms | 998 KiB | 14 Q