3v4l.org

run code in 300+ PHP versions simultaneously
<?php $superheroes = array( "spider-man" => array( "name" => "Peter Parker", "email" => "peterparker@mail.com", ), "super-man" => array( "name" => "Clark Kent", "email" => "clarkkent@mail.com", ), "iron-man" => array( "name" => "Harry Potter", "email" => "harrypotter@mail.com", ) ); function checkArray($array, $dimensionName) { if(is_Array ($array)) { echo "======== \n"; forEach($array as $index => $item) { $dimensionPath = $array[$index]; $dimensionName = ($array) . ($index); echo "YES-" . (($dimensionName) . ": " . ($item) . "\n"); checkArray($dimensionPath); } } } checkArray($superheroes);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/amPml
function name:  (null)
number of ops:  5
compiled vars:  !0 = $superheroes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   29     1        INIT_FCALL                                               'checkarray'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function checkarray:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 22
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 21
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 22
filename:       /in/amPml
function name:  checkArray
number of ops:  23
compiled vars:  !0 = $array, !1 = $dimensionName, !2 = $item, !3 = $index, !4 = $dimensionPath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   18     2        TYPE_CHECK                                  128          !0
          3      > JMPZ                                                     ~5, ->22
   19     4    >   ECHO                                                     '%3D%3D%3D%3D%3D%3D%3D%3D+%0A'
   20     5      > FE_RESET_R                                       $6      !0, ->21
          6    > > FE_FETCH_R                                       ~7      $6, !2, ->21
          7    >   ASSIGN                                                   !3, ~7
   21     8        FETCH_DIM_R                                      ~9      !0, !3
          9        ASSIGN                                                   !4, ~9
   22    10        CONCAT                                           ~11     !0, !3
         11        ASSIGN                                                   !1, ~11
   23    12        CONCAT                                           ~13     !1, '%3A+'
         13        CONCAT                                           ~14     ~13, !2
         14        CONCAT                                           ~15     ~14, '%0A'
         15        CONCAT                                           ~16     'YES-', ~15
         16        ECHO                                                     ~16
   24    17        INIT_FCALL_BY_NAME                                       'checkArray'
         18        SEND_VAR_EX                                              !4
         19        DO_FCALL                                      0          
   20    20      > JMP                                                      ->6
         21    >   FE_FREE                                                  $6
   27    22    > > RETURN                                                   null

End of function checkarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.24 ms | 1399 KiB | 14 Q