3v4l.org

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

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

End of function b

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

End of function c

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.18 ms | 1393 KiB | 13 Q