3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $a = 1; public function b() { print_r($this->$a); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L2C6T
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   1

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

End of function b

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.65 ms | 1394 KiB | 15 Q