3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseController{ public function __call(string $Action, array $Data){ if (method_exists($this, $Action . "Action")) { } else if (method_exists($this, "DefaultAction")) { if ($this->DefaultAction($Action, $Data)){ } exit; } } } class TestPage extends BaseController{ private function DefaultAction(string $Action, array $Data): bool{ 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/Ip56R
function name:  (null)
number of ops:  6
compiled vars:  !0 = $testpage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'TestPage'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     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 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 21
Branch analysis from position: 21
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 22
filename:       /in/Ip56R
function name:  __call
number of ops:  23
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                                                      ->22
    5    10    >   INIT_FCALL                                               'method_exists'
         11        FETCH_THIS                                       ~5      
         12        SEND_VAL                                                 ~5
         13        SEND_VAL                                                 'DefaultAction'
         14        DO_ICALL                                         $6      
         15      > JMPZ                                                     $6, ->22
    6    16    >   INIT_METHOD_CALL                                         'DefaultAction'
         17        SEND_VAR_EX                                              !0
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0  $7      
         20      > JMPZ                                                     $7, ->21
    9    21    > > EXIT                                                     
   11    22    > > 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/Ip56R
function name:  DefaultAction
number of ops:  5
compiled vars:  !0 = $Action, !1 = $Data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   15     2      > RETURN                                                   <false>
   16     3*       VERIFY_RETURN_TYPE                                       
          4*     > 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 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 21
Branch analysis from position: 21
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 22
filename:       /in/Ip56R
function name:  __call
number of ops:  23
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                                                      ->22
    5    10    >   INIT_FCALL                                               'method_exists'
         11        FETCH_THIS                                       ~5      
         12        SEND_VAL                                                 ~5
         13        SEND_VAL                                                 'DefaultAction'
         14        DO_ICALL                                         $6      
         15      > JMPZ                                                     $6, ->22
    6    16    >   INIT_METHOD_CALL                                         'DefaultAction'
         17        SEND_VAR_EX                                              !0
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0  $7      
         20      > JMPZ                                                     $7, ->21
    9    21    > > EXIT                                                     
   11    22    > > RETURN                                                   null

End of function __call

End of class TestPage.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.47 ms | 1400 KiB | 15 Q