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'); 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/m5YMl
function name:  (null)
number of ops:  16
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                                               'var_dump'
          6        INIT_FCALL                                               'debug_zval_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
   22    11        INIT_FCALL                                               'var_export'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        ECHO                                                     $6
         15      > RETURN                                                   1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m5YMl
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/m5YMl
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:
174.97 ms | 1396 KiB | 19 Q