3v4l.org

run code in 500+ PHP versions simultaneously
<?php class BaseController{ public function __call($Action, array $Data){ if (method_exists($this, $Action . "Action")) { } elseif (method_exists($this, "DefaultAction") and $this->DefaultAction($Action, $Data)) { exit; } } } class TestPage extends BaseController{ protected function DefaultAction($Action, array $Data) { return false; } } $testpage = new TestPage(); $testpage->Show();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l37O8
function name:  (null)
number of ops:  6
compiled vars:  !0 = $testpage
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   NEW                                                  $1      'TestPage'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   16     3        INIT_METHOD_CALL                                             !0, 'Show'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

Class BaseController:
Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 21
filename:       /in/l37O8
function name:  __call
number of ops:  25
compiled vars:  !0 = $Action, !1 = $Data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    4     2        INIT_FCALL                                                   'method_exists'
          3        FETCH_THIS                                           ~2      
          4        SEND_VAL                                                     ~2
          5        CONCAT                                               ~3      !0, 'Action'
          6        SEND_VAL                                                     ~3
          7        DO_ICALL                                             $4      
          8      > JMPZ                                                         $4, ->10
          9    > > JMP                                                          ->24
    5    10    >   INIT_FCALL                                                   'method_exists'
         11        FETCH_THIS                                           ~5      
         12        SEND_VAL                                                     ~5
         13        SEND_VAL                                                     'DefaultAction'
         14        DO_ICALL                                             $6      
         15      > JMPZ_EX                                              ~7      $6, ->21
         16    >   INIT_METHOD_CALL                                             'DefaultAction'
         17        SEND_VAR_EX                                                  !0
         18        SEND_VAR_EX                                                  !1
         19        DO_FCALL                                          0  $8      
         20        BOOL                                                 ~7      $8
         21    > > JMPZ                                                         ~7, ->24
    6    22    > > INIT_FCALL                                                   'exit'
         23*       DO_ICALL                                                     
    8    24    > > RETURN                                                       null

End of function __call

End of class BaseController.

Class TestPage:
Function defaultaction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l37O8
function name:  DefaultAction
number of ops:  4
compiled vars:  !0 = $Action, !1 = $Data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   12     2      > RETURN                                                       <false>
   13     3*     > RETURN                                                       null

End of function defaultaction

Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 21
filename:       /in/l37O8
function name:  __call
number of ops:  25
compiled vars:  !0 = $Action, !1 = $Data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    4     2        INIT_FCALL                                                   'method_exists'
          3        FETCH_THIS                                           ~2      
          4        SEND_VAL                                                     ~2
          5        CONCAT                                               ~3      !0, 'Action'
          6        SEND_VAL                                                     ~3
          7        DO_ICALL                                             $4      
          8      > JMPZ                                                         $4, ->10
          9    > > JMP                                                          ->24
    5    10    >   INIT_FCALL                                                   'method_exists'
         11        FETCH_THIS                                           ~5      
         12        SEND_VAL                                                     ~5
         13        SEND_VAL                                                     'DefaultAction'
         14        DO_ICALL                                             $6      
         15      > JMPZ_EX                                              ~7      $6, ->21
         16    >   INIT_METHOD_CALL                                             'DefaultAction'
         17        SEND_VAR_EX                                                  !0
         18        SEND_VAR_EX                                                  !1
         19        DO_FCALL                                          0  $8      
         20        BOOL                                                 ~7      $8
         21    > > JMPZ                                                         ~7, ->24
    6    22    > > INIT_FCALL                                                   'exit'
         23*       DO_ICALL                                                     
    8    24    > > RETURN                                                       null

End of function __call

End of class TestPage.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.52 ms | 2905 KiB | 15 Q