3v4l.org

run code in 300+ PHP versions simultaneously
<?php $good =['name'=> 'prinsha','surname'=> 'jangam']; $good['doggy'] = 'newjippu'; //echo $good['name']; foreach($good as $key=>$item){ echo $key .' '.$item. "\n"; } $array = [1, 2, 3,4, 5] ; // Mulltidimensional array $dogs = [ ['breed' => 'Cocker Spaniel', 'name' => ' Jypsy', 'size' => [ 'width'=> 5, 'height'=> 10]], ['breed' => 'german ', 'name' => ' Jypsy', 'size' => [ 'width'=>5, 'height'=> 10]], ['breed' => 'Shiba Inu', 'name' => ' Kotetsu', 'size' => [ 'width'=> 5, 'height'=> 10]], ['breed' => 'Unknown', 'name' => ' Sheru Bahadur', 'size' => [ 'width'=>5, 'height'=> 10]], ]; echo $dogs[0]; // we can use this to represent record of any kind, for example student record, anything, even complex things
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/figZ1
function name:  (null)
number of ops:  17
compiled vars:  !0 = $good, !1 = $item, !2 = $key, !3 = $array, !4 = $dogs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 'doggy'
          2        OP_DATA                                                  'newjippu'
    5     3      > FE_RESET_R                                       $7      !0, ->11
          4    > > FE_FETCH_R                                       ~8      $7, !1, ->11
          5    >   ASSIGN                                                   !2, ~8
    6     6        CONCAT                                           ~10     !2, '+'
          7        CONCAT                                           ~11     ~10, !1
          8        CONCAT                                           ~12     ~11, '%0A'
          9        ECHO                                                     ~12
    5    10      > JMP                                                      ->4
         11    >   FE_FREE                                                  $7
   10    12        ASSIGN                                                   !3, <array>
   12    13        ASSIGN                                                   !4, <array>
   26    14        FETCH_DIM_R                                      ~15     !4, 0
         15        ECHO                                                     ~15
   29    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.39 ms | 1394 KiB | 13 Q