3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function b() { print "b"; return $this; } public function c() { print "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/Vjnst
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'a'
          1        DO_FCALL                                      0          
   18     2        INIT_METHOD_CALL                                         $1, 'b'
          3        DO_FCALL                                      0  $3      
   19     4        INIT_METHOD_CALL                                         $3, 'c'
          5        DO_FCALL                                      0  $4      
   17     6        ASSIGN                                                   !0, $4
   19     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/Vjnst
function name:  b
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'b'
    7     1        FETCH_THIS                                       ~0      
          2      > RETURN                                                   ~0
    8     3*     > 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/Vjnst
function name:  c
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'c'
   12     1        FETCH_THIS                                       ~0      
          2      > RETURN                                                   ~0
   13     3*     > RETURN                                                   null

End of function c

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.1 ms | 1393 KiB | 13 Q