3v4l.org

run code in 300+ PHP versions simultaneously
<?php function printArray($array) { if (is_array($array)) { foreach ($array as $key => $value) { if ($key != 'GLOBALS') { if (is_array($value)) { printArray($value); } else { echo $value."<br>"; } } } } } print_r($GLOBALS); printArray($GLOBALS);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8vE7c
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'print_r'
          1        FETCH_R                      global              ~0      'GLOBALS'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   19     4        INIT_FCALL                                               'printarray'
          5        FETCH_R                      global              ~2      'GLOBALS'
          6        SEND_VAL                                                 ~2
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function printarray:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 16
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 18
filename:       /in/8vE7c
function name:  printArray
number of ops:  19
compiled vars:  !0 = $array, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~3, ->18
    5     3    > > FE_RESET_R                                       $4      !0, ->17
          4    > > FE_FETCH_R                                       ~5      $4, !1, ->17
          5    >   ASSIGN                                                   !2, ~5
    6     6        IS_NOT_EQUAL                                             !2, 'GLOBALS'
          7      > JMPZ                                                     ~7, ->16
    7     8    >   TYPE_CHECK                                  128          !1
          9      > JMPZ                                                     ~8, ->14
    8    10    >   INIT_FCALL_BY_NAME                                       'printArray'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0          
         13      > JMP                                                      ->16
   10    14    >   CONCAT                                           ~10     !1, '%3Cbr%3E'
         15        ECHO                                                     ~10
    5    16    > > JMP                                                      ->4
         17    >   FE_FREE                                                  $4
   15    18    > > RETURN                                                   null

End of function printarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
300.85 ms | 1398 KiB | 17 Q