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

End of function checkarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.62 ms | 1399 KiB | 14 Q