3v4l.org

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

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

End of function a

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.45 ms | 1398 KiB | 15 Q