3v4l.org

run code in 300+ PHP versions simultaneously
<?php //function Multidimentional Array function barang (){ $charles = [["nama_barang"=>"Laptop","harga"=>15000,"Qty"=>100,"Kondisi"=>"Baik"],["nama_barang"=>"Dekstop","harga"=>30000,"Qty"=>30,"Kondisi"=>"Buruk"], ["nama_barang"=>"Smartphone","harga"=>40000,"Qty"=>20,"Kondisi"=>"Baik Sekali"]]; return $charles; } //Print the result of Multidimentional Array called from function echo '"' .barang()[0]['nama_barang'] . '" ,' . barang()[0]['harga'] . ' ,' . barang()[0]['Qty'] . ' , ' . barang()[0]['Kondisi']; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9jWFg
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'barang'
          1        DO_FCALL                                      0  $0      
          2        FETCH_DIM_R                                      ~1      $0, 0
          3        FETCH_DIM_R                                      ~2      ~1, 'nama_barang'
          4        CONCAT                                           ~3      '%22', ~2
          5        CONCAT                                           ~4      ~3, '%22+%2C'
   14     6        INIT_FCALL                                               'barang'
          7        DO_FCALL                                      0  $5      
          8        FETCH_DIM_R                                      ~6      $5, 0
          9        FETCH_DIM_R                                      ~7      ~6, 'harga'
         10        CONCAT                                           ~8      ~4, ~7
         11        CONCAT                                           ~9      ~8, '+%2C'
   15    12        INIT_FCALL                                               'barang'
         13        DO_FCALL                                      0  $10     
         14        FETCH_DIM_R                                      ~11     $10, 0
         15        FETCH_DIM_R                                      ~12     ~11, 'Qty'
         16        CONCAT                                           ~13     ~9, ~12
         17        CONCAT                                           ~14     ~13, '+%2C+'
   16    18        INIT_FCALL                                               'barang'
         19        DO_FCALL                                      0  $15     
         20        FETCH_DIM_R                                      ~16     $15, 0
         21        FETCH_DIM_R                                      ~17     ~16, 'Kondisi'
         22        CONCAT                                           ~18     ~14, ~17
         23        ECHO                                                     ~18
   18    24      > RETURN                                                   1

Function barang:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9jWFg
function name:  barang
number of ops:  3
compiled vars:  !0 = $charles
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    9     1      > RETURN                                                   !0
   10     2*     > RETURN                                                   null

End of function barang

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.55 ms | 999 KiB | 17 Q