3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Sf28Controller { public function render() { return __METHOD__; } } class Sonata28Controller extends Sf28Controller { public function __call($method, $arguments) { return 'magic call'; } } class Sf3Controller { protected function render() { return __METHOD__; } } class Sonata3Controller extends Sf3Controller { public function __call($method, $arguments) { return 'magic call'; } } $legacyController = new Sonata28Controller; $controller = new Sonata3Controller; var_dump($legacyController->render()); var_dump($controller->render());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pPBhA
function name:  (null)
number of ops:  17
compiled vars:  !0 = $legacyController, !1 = $controller
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   35     0  E >   NEW                                                  $2      'Sonata28Controller'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
   36     3        NEW                                                  $5      'Sonata3Controller'
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !1, $5
   38     6        INIT_FCALL                                                   'var_dump'
          7        INIT_METHOD_CALL                                             !0, 'render'
          8        DO_FCALL                                          0  $8      
          9        SEND_VAR                                                     $8
         10        DO_ICALL                                                     
   39    11        INIT_FCALL                                                   'var_dump'
         12        INIT_METHOD_CALL                                             !1, 'render'
         13        DO_FCALL                                          0  $10     
         14        SEND_VAR                                                     $10
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Class Sf28Controller:
Function render:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pPBhA
function name:  render
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                       'Sf28Controller%3A%3Arender'
    8     1*     > RETURN                                                       null

End of function render

End of class Sf28Controller.

Class Sonata28Controller:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pPBhA
function name:  __call
number of ops:  4
compiled vars:  !0 = $method, !1 = $arguments
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   15     2      > RETURN                                                       'magic+call'
   16     3*     > RETURN                                                       null

End of function __call

Function render:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pPBhA
function name:  render
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                       'Sf28Controller%3A%3Arender'
    8     1*     > RETURN                                                       null

End of function render

End of class Sonata28Controller.

Class Sf3Controller:
Function render:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pPBhA
function name:  render
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   23     0  E > > RETURN                                                       'Sf3Controller%3A%3Arender'
   24     1*     > RETURN                                                       null

End of function render

End of class Sf3Controller.

Class Sonata3Controller:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pPBhA
function name:  __call
number of ops:  4
compiled vars:  !0 = $method, !1 = $arguments
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   29     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   31     2      > RETURN                                                       'magic+call'
   32     3*     > RETURN                                                       null

End of function __call

Function render:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pPBhA
function name:  render
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   23     0  E > > RETURN                                                       'Sf3Controller%3A%3Arender'
   24     1*     > RETURN                                                       null

End of function render

End of class Sonata3Controller.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.54 ms | 3304 KiB | 14 Q