3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(array(52,'10',true), 2, ‘string’, [190, 2.11, 1206]); function printArray($array) { foreach ($array as $value) { if (is_array($value)) { printArray($value); } else { echo $value . "<br>"; } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BiXev
function name:  (null)
number of ops:  7
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                       ~1      <array>
          1        ADD_ARRAY_ELEMENT                                ~1      2
          2        FETCH_CONSTANT                                   ~2      '%E2%80%98string%E2%80%99'
          3        ADD_ARRAY_ELEMENT                                ~1      ~2
          4        ADD_ARRAY_ELEMENT                                ~1      <array>
          5        ASSIGN                                                   !0, ~1
   11     6      > RETURN                                                   1

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

End of function printarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.23 ms | 1395 KiB | 13 Q