3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; private $baz; public function __construct($bar, $baz) { $this->bar = $bar; $this->baz = $baz; } public function __debugInfo() { return ['bar' => $this->bar]; } } $foo = new Foo('abc', 'def'); print_r(debug_backtrace()); print_r($foo); var_dump(debug_zval_dump($foo)); echo var_export($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M6qHe
function name:  (null)
number of ops:  24
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Foo'
          1        SEND_VAL_EX                                              'abc'
          2        SEND_VAL_EX                                              'def'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   20     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'debug_backtrace'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
   22    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   24    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'debug_zval_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
   26    19        INIT_FCALL                                               'var_export'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $9      
         22        ECHO                                                     $9
         23      > RETURN                                                   1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M6qHe
function name:  __construct
number of ops:  7
compiled vars:  !0 = $bar, !1 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        ASSIGN_OBJ                                               'bar'
          3        OP_DATA                                                  !0
   10     4        ASSIGN_OBJ                                               'baz'
          5        OP_DATA                                                  !1
   11     6      > RETURN                                                   null

End of function __construct

Function __debuginfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M6qHe
function name:  __debugInfo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~0      'bar'
          1        INIT_ARRAY                                       ~1      ~0, 'bar'
          2      > RETURN                                                   ~1
   15     3*     > RETURN                                                   null

End of function __debuginfo

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.66 ms | 1400 KiB | 23 Q