3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Base { public function __call($name, array $params) { echo $name; return $this; } } class A extends Base { public function Launch() { echo "Launch<BR>"; var_dump(get_class($this)); } } $A = new A; $A->somestrange(); $A->Launch(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tL2Ak
function name:  (null)
number of ops:  8
compiled vars:  !0 = $A
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   23     3        INIT_METHOD_CALL                                         !0, 'somestrange'
          4        DO_FCALL                                      0          
   25     5        INIT_METHOD_CALL                                         !0, 'Launch'
          6        DO_FCALL                                      0          
   27     7      > RETURN                                                   1

Class Base:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tL2Ak
function name:  __call
number of ops:  6
compiled vars:  !0 = $name, !1 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        ECHO                                                     !0
    8     3        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
    9     5*     > RETURN                                                   null

End of function __call

End of class Base.

Class A:
Function launch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tL2Ak
function name:  Launch
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ECHO                                                     'Launch%3CBR%3E'
   17     1        INIT_FCALL                                               'var_dump'
          2        FETCH_THIS                                       ~0      
          3        GET_CLASS                                        ~1      ~0
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
   18     6      > RETURN                                                   null

End of function launch

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tL2Ak
function name:  __call
number of ops:  6
compiled vars:  !0 = $name, !1 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        ECHO                                                     !0
    8     3        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
    9     5*     > RETURN                                                   null

End of function __call

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.82 ms | 1388 KiB | 15 Q