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();}} $r_1 = [0=>'ALL']; $r_2 = [3=>324, 2=>434, 4=>234]; // $r_1 += $r_2; _dump(date('Y-m-d H:i:s') . ' - ' . date('Y-m-d H:i:s', time()+2 ).' 1'); /* ----------- */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wsgev
function name:  (null)
number of ops:  19
compiled vars:  !0 = $r_1, !1 = $r_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   12     2        INIT_FCALL                                               '_dump'
          3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          5        DO_ICALL                                         $4      
          6        CONCAT                                           ~5      $4, '+-+'
          7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          9        INIT_FCALL                                               'time'
         10        DO_ICALL                                         $6      
         11        ADD                                              ~7      $6, 2
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                         $8      
         14        CONCAT                                           ~9      ~5, $8
         15        CONCAT                                           ~10     ~9, '+1'
         16        SEND_VAL                                                 ~10
         17        DO_FCALL                                      0          
   24    18      > 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/Wsgev
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:
150.39 ms | 1403 KiB | 26 Q