3v4l.org

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

Class foo:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TWk34
function name:  b
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'print_r'
          1        SEND_VAR                                                 !0
          2        DO_ICALL                                                 
   10     3      > RETURN                                                   null

End of function b

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.66 ms | 1394 KiB | 15 Q