3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Base { public function __call($n,array$p) { echo __METHOD__.' says: '.$n; } } class Main extends Base { public function __construct() { self::Launch(); } } $M=new Main;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FV60m
function name:  (null)
number of ops:  4
compiled vars:  !0 = $M
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'Main'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

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

End of function __call

End of class Base.

Class Main:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FV60m
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'Launch'
          1        DO_FCALL                                      0          
   16     2      > RETURN                                                   null

End of function __construct

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FV60m
function name:  __call
number of ops:  5
compiled vars:  !0 = $n, !1 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        CONCAT                                           ~2      'Base%3A%3A__call+says%3A+', !0
          3        ECHO                                                     ~2
    8     4      > RETURN                                                   null

End of function __call

End of class Main.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.92 ms | 1395 KiB | 13 Q