3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'key' => 'value', 'mushroom' => [ 'badger' => 1 ] ]; function my_var_export($array) { echo '[' . "\n"; foreach($array as $key=>$val) { echo $key . ' => '; if (is_array($val)) { my_var_export($val); } else { echo $val . "\n"; } } echo ']'; } my_var_export($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KcbpA
function name:  (null)
number of ops:  5
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   24     1        INIT_FCALL                                               'my_var_export'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function my_var_export

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.06 ms | 1399 KiB | 14 Q