3v4l.org

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

Class toto:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Pgk5
function name:  foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function foo

End of class toto.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.89 ms | 1392 KiB | 13 Q