3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** @author: Pavlo Matsura <webxid@ukr.net> */function _dump($str, $exit = false, $var_title = 1, $var_dump = false) {if (!$var_dump) {$buff = print_r($str, true);} else {ob_start();var_dump($str);$buff = ob_get_clean();}$dumps_html = "\nDeBuging Dump\n=============\n# " . $var_title . "\n" . "===================================\n\n" . $buff . "\n" . "===================================\n\n";echo $dumps_html;if ($exit) {exit();}} $array = array(23 => 100, 57 => "red"); _dump(array_keys($array)); /* ----------- */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nW3VW
function name:  (null)
number of ops:  8
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               '_dump'
          2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_FCALL                                      0          
   19     7      > RETURN                                                   1

Function _dump:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
Branch analysis from position: 30
filename:       /in/nW3VW
function name:  _dump
number of ops:  31
compiled vars:  !0 = $str, !1 = $exit, !2 = $var_title, !3 = $var_dump, !4 = $buff, !5 = $dumps_html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <false>
          2        RECV_INIT                                        !2      1
          3        RECV_INIT                                        !3      <false>
          4        BOOL_NOT                                         ~6      !3
          5      > JMPZ                                                     ~6, ->12
          6    >   INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !4, $7
         11      > JMP                                                      ->20
         12    >   INIT_FCALL                                               'ob_start'
         13        DO_ICALL                                                 
         14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17        INIT_FCALL                                               'ob_get_clean'
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !4, $11
         20    >   CONCAT                                           ~13     '%0ADeBuging+Dump%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%23+', !2
         21        CONCAT                                           ~14     ~13, '%0A'
         22        CONCAT                                           ~15     ~14, '%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%0A'
         23        CONCAT                                           ~16     ~15, !4
         24        CONCAT                                           ~17     ~16, '%0A'
         25        CONCAT                                           ~18     ~17, '%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%0A'
         26        ASSIGN                                                   !5, ~18
         27        ECHO                                                     !5
         28      > JMPZ                                                     !1, ->30
         29    > > EXIT                                                     
         30    > > RETURN                                                   null

End of function _dump

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.24 ms | 1403 KiB | 24 Q