3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Magic { public function __call($method, $arguments) { throw new Exception('NO METHOD'); } public function exists() { } } class NotMagic extends Magic { public function test() { $this->exists(); } } $nm = new NotMagic; $nm->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pjm2W
function name:  (null)
number of ops:  6
compiled vars:  !0 = $nm
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $1      'NotMagic'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   25     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Magic:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/pjm2W
function name:  __call
number of ops:  7
compiled vars:  !0 = $method, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        NEW                                              $2      'Exception'
          3        SEND_VAL_EX                                              'NO+METHOD'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $2
    8     6*     > RETURN                                                   null

End of function __call

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

End of function exists

End of class Magic.

Class NotMagic:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pjm2W
function name:  test
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_METHOD_CALL                                         'exists'
          1        DO_FCALL                                      0          
   21     2      > RETURN                                                   null

End of function test

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/pjm2W
function name:  __call
number of ops:  7
compiled vars:  !0 = $method, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        NEW                                              $2      'Exception'
          3        SEND_VAL_EX                                              'NO+METHOD'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $2
    8     6*     > RETURN                                                   null

End of function __call

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

End of function exists

End of class NotMagic.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.82 ms | 1390 KiB | 13 Q