3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; public function baz() { var_dump($this->bar); var_dump(get_class($this->bar)); } } $foo = new Foo(); $foo->baz();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dVvNX
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_METHOD_CALL                                         !0, 'baz'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo:
Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dVvNX
function name:  baz
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'bar'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   10     4        INIT_FCALL                                               'var_dump'
          5        FETCH_OBJ_R                                      ~2      'bar'
          6        GET_CLASS                                        ~3      ~2
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
   11     9      > RETURN                                                   null

End of function baz

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.55 ms | 1399 KiB | 15 Q