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 "\t" . $key . ' => '; if (is_array($val)) { my_var_export($val); } else { echo $val . "\n"; } } echo "\n" . ']'; } my_var_export($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QSc4b
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 = 17
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
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 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/QSc4b
function name:  my_var_export
number of ops:  20
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, ->17
          3    > > FE_FETCH_R                                       ~4      $3, !1, ->17
          4    >   ASSIGN                                                   !2, ~4
   13     5        CONCAT                                           ~6      '%09', !2
          6        CONCAT                                           ~7      ~6, '+%3D%3E+'
          7        ECHO                                                     ~7
   14     8        TYPE_CHECK                                  128          !1
          9      > JMPZ                                                     ~8, ->14
   15    10    >   INIT_FCALL_BY_NAME                                       'my_var_export'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0          
         13      > JMP                                                      ->16
   18    14    >   CONCAT                                           ~10     !1, '%0A'
         15        ECHO                                                     ~10
   12    16    > > JMP                                                      ->3
         17    >   FE_FREE                                                  $3
   21    18        ECHO                                                     '%0A%5D'
   22    19      > RETURN                                                   null

End of function my_var_export

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.38 ms | 1399 KiB | 14 Q