3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface BehaviorInterface {} abstract class BaseService { protected $behaviors; public function addBehavior(BehaviorInterface $b, array $export = []) { if (!count($this->behaviors)) { $this->behaviors[] = ['object' => $b, 'export' => $export]; return $this; } foreach ($this->behaviors as $behavior) { if (count($export) && count(array_intersect($behavior['export'], $export)) > 0) { throw new \Exception("Some of export methods already exists"); } $this->behaviors[] = ['object' => $b, 'export' => $export]; } return $this; } public function __call($name, $arguments) { foreach ($this->behaviors as $behavior) { if ((in_array($name, $behavior['export']) || !count($behavior['export'])) && method_exists($behavior['object'], $name)) { return call_user_func_array([$behavior['object'], $name], $arguments); } } $class = get_called_class(); throw new \Exception('Method "' . $name . '" does not exist in class "' . $class . '"'); } } class SayHui implements BehaviorInterface { public function hui($name) { echo $name, ', hui tebe!' . PHP_EOL; } } class NewSayHui implements BehaviorInterface { public function hui($name) { echo 'Fuck you, ' . $name . '!' . PHP_EOL; } } class HuiService extends BaseService { } class HuiService2 extends BaseService { } class HuiService3 extends BaseService { } $huiService = new HuiService(); $huiService->addBehavior(new SayHui()) ->hui('Nikita'); $huiService = new HuiService2(); $huiService->addBehavior(new NewSayHui()) ->hui('Eugene'); $huiService = new HuiService3(); $huiService->addBehavior(new SayHui()) ->addBehavior(new NewSayHui()) ->hui('Shandor');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kDGZS
function name:  (null)
number of ops:  41
compiled vars:  !0 = $huiService
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   DECLARE_CLASS                                            'sayhui'
   44     1        DECLARE_CLASS                                            'newsayhui'
   64     2        NEW                                              $1      'HuiService'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   65     5        INIT_METHOD_CALL                                         !0, 'addBehavior'
          6        NEW                                              $4      'SayHui'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $4
          9        DO_FCALL                                      0  $6      
   66    10        INIT_METHOD_CALL                                         $6, 'hui'
         11        SEND_VAL_EX                                              'Nikita'
         12        DO_FCALL                                      0          
   68    13        NEW                                              $8      'HuiService2'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !0, $8
   69    16        INIT_METHOD_CALL                                         !0, 'addBehavior'
         17        NEW                                              $11     'NewSayHui'
         18        DO_FCALL                                      0          
         19        SEND_VAR_NO_REF_EX                                       $11
         20        DO_FCALL                                      0  $13     
   70    21        INIT_METHOD_CALL                                         $13, 'hui'
         22        SEND_VAL_EX                                              'Eugene'
         23        DO_FCALL                                      0          
   72    24        NEW                                              $15     'HuiService3'
         25        DO_FCALL                                      0          
         26        ASSIGN                                                   !0, $15
   73    27        INIT_METHOD_CALL                                         !0, 'addBehavior'
         28        NEW                                              $18     'SayHui'
         29        DO_FCALL                                      0          
         30        SEND_VAR_NO_REF_EX                                       $18
         31        DO_FCALL                                      0  $20     
   74    32        INIT_METHOD_CALL                                         $20, 'addBehavior'
         33        NEW                                              $21     'NewSayHui'
         34        DO_FCALL                                      0          
         35        SEND_VAR_NO_REF_EX                                       $21
         36        DO_FCALL                                      0  $23     
   75    37        INIT_METHOD_CALL                                         $23, 'hui'
         38        SEND_VAL_EX                                              'Shandor'
         39        DO_FCALL                                      0          
         40      > RETURN                                                   1

Class BehaviorInterface: [no user functions]
Class BaseService:
Function addbehavior:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 37
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 37
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 31
Branch analysis from position: 27
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 26
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/kDGZS
function name:  addBehavior
number of ops:  41
compiled vars:  !0 = $b, !1 = $export, !2 = $behavior
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
   11     2        FETCH_OBJ_R                                      ~3      'behaviors'
          3        COUNT                                            ~4      ~3
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ                                                     ~5, ->13
   12     6    >   INIT_ARRAY                                       ~8      !0, 'object'
          7        ADD_ARRAY_ELEMENT                                ~8      !1, 'export'
          8        FETCH_OBJ_W                                      $6      'behaviors'
          9        ASSIGN_DIM                                               $6
         10        OP_DATA                                                  ~8
   13    11        FETCH_THIS                                       ~9      
         12      > RETURN                                                   ~9
   15    13    >   FETCH_OBJ_R                                      ~10     'behaviors'
         14      > FE_RESET_R                                       $11     ~10, ->37
         15    > > FE_FETCH_R                                               $11, !2, ->37
   16    16    >   COUNT                                            ~12     !1
         17      > JMPZ_EX                                          ~12     ~12, ->26
         18    >   INIT_FCALL                                               'array_intersect'
         19        FETCH_DIM_R                                      ~13     !2, 'export'
         20        SEND_VAL                                                 ~13
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $14     
         23        COUNT                                            ~15     $14
         24        IS_SMALLER                                       ~16     0, ~15
         25        BOOL                                             ~12     ~16
         26    > > JMPZ                                                     ~12, ->31
   17    27    >   NEW                                              $17     'Exception'
         28        SEND_VAL_EX                                              'Some+of+export+methods+already+exists'
         29        DO_FCALL                                      0          
         30      > THROW                                         0          $17
   19    31    >   INIT_ARRAY                                       ~21     !0, 'object'
         32        ADD_ARRAY_ELEMENT                                ~21     !1, 'export'
         33        FETCH_OBJ_W                                      $19     'behaviors'
         34        ASSIGN_DIM                                               $19
         35        OP_DATA                                                  ~21
   15    36      > JMP                                                      ->15
         37    >   FE_FREE                                                  $11
   21    38        FETCH_THIS                                       ~22     
         39      > RETURN                                                   ~22
   22    40*     > RETURN                                                   null

End of function addbehavior

Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 33
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 33
Branch analysis from position: 5
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 32
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 22
Branch analysis from position: 15
Branch analysis from position: 33
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 33
filename:       /in/kDGZS
function name:  __call
number of ops:  45
compiled vars:  !0 = $name, !1 = $arguments, !2 = $behavior, !3 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   26     2        FETCH_OBJ_R                                      ~4      'behaviors'
          3      > FE_RESET_R                                       $5      ~4, ->33
          4    > > FE_FETCH_R                                               $5, !2, ->33
   27     5    >   INIT_FCALL                                               'in_array'
          6        SEND_VAR                                                 !0
          7        FETCH_DIM_R                                      ~6      !2, 'export'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10      > JMPNZ_EX                                         ~8      $7, ->15
         11    >   FETCH_DIM_R                                      ~9      !2, 'export'
         12        COUNT                                            ~10     ~9
         13        BOOL_NOT                                         ~11     ~10
         14        BOOL                                             ~8      ~11
         15    > > JMPZ_EX                                          ~8      ~8, ->22
         16    >   INIT_FCALL                                               'method_exists'
         17        FETCH_DIM_R                                      ~12     !2, 'object'
         18        SEND_VAL                                                 ~12
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $13     
         21        BOOL                                             ~8      $13
         22    > > JMPZ                                                     ~8, ->32
   28    23    >   FETCH_DIM_R                                      ~14     !2, 'object'
         24        INIT_ARRAY                                       ~15     ~14
         25        ADD_ARRAY_ELEMENT                                ~15     !0
         26        INIT_USER_CALL                                0          'call_user_func_array', ~15
         27        SEND_ARRAY                                               !1
         28        CHECK_UNDEF_ARGS                                         
         29        DO_FCALL                                      0  $16     
         30        FE_FREE                                                  $5
         31      > RETURN                                                   $16
   26    32    > > JMP                                                      ->4
         33    >   FE_FREE                                                  $5
   31    34        GET_CALLED_CLASS                                 ~17     
         35        ASSIGN                                                   !3, ~17
   32    36        NEW                                              $19     'Exception'
         37        CONCAT                                           ~20     'Method+%22', !0
         38        CONCAT                                           ~21     ~20, '%22+does+not+exist+in+class+%22'
         39        CONCAT                                           ~22     ~21, !3
         40        CONCAT                                           ~23     ~22, '%22'
         41        SEND_VAL_EX                                              ~23
         42        DO_FCALL                                      0          
         43      > THROW                                         0          $19
   33    44*     > RETURN                                                   null

End of function __call

End of class BaseService.

Class SayHui:
Function hui:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kDGZS
function name:  hui
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   RECV                                             !0      
   40     1        ECHO                                                     !0
          2        ECHO                                                     '%2C+hui+tebe%21%0A'
   41     3      > RETURN                                                   null

End of function hui

End of class SayHui.

Class NewSayHui:
Function hui:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kDGZS
function name:  hui
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   RECV                                             !0      
   48     1        CONCAT                                           ~1      'Fuck+you%2C+', !0
          2        CONCAT                                           ~2      ~1, '%21'
          3        CONCAT                                           ~3      ~2, '%0A'
          4        ECHO                                                     ~3
   49     5      > RETURN                                                   null

End of function hui

End of class NewSayHui.

Class HuiService:
Function addbehavior:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 37
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 37
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 31
Branch analysis from position: 27
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 26
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/kDGZS
function name:  addBehavior
number of ops:  41
compiled vars:  !0 = $b, !1 = $export, !2 = $behavior
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
   11     2        FETCH_OBJ_R                                      ~3      'behaviors'
          3        COUNT                                            ~4      ~3
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ                                                     ~5, ->13
   12     6    >   INIT_ARRAY                                       ~8      !0, 'object'
          7        ADD_ARRAY_ELEMENT                                ~8      !1, 'export'
          8        FETCH_OBJ_W                                      $6      'behaviors'
          9        ASSIGN_DIM                                               $6
         10        OP_DATA                                                  ~8
   13    11        FETCH_THIS                                       ~9      
         12      > RETURN                                                   ~9
   15    13    >   FETCH_OBJ_R                                      ~10     'behaviors'
         14      > FE_RESET_R                                       $11     ~10, ->37
         15    > > FE_FETCH_R                                               $11, !2, ->37
   16    16    >   COUNT                                            ~12     !1
         17      > JMPZ_EX                                          ~12     ~12, ->26
         18    >   INIT_FCALL                                               'array_intersect'
         19        FETCH_DIM_R                                      ~13     !2, 'export'
         20        SEND_VAL                                                 ~13
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $14     
         23        COUNT                                            ~15     $14
         24        IS_SMALLER                                       ~16     0, ~15
         25        BOOL                                             ~12     ~16
         26    > > JMPZ                                                     ~12, ->31
   17    27    >   NEW                                              $17     'Exception'
         28        SEND_VAL_EX                                              'Some+of+export+methods+already+exists'
         29        DO_FCALL                                      0          
         30      > THROW                                         0          $17
   19    31    >   INIT_ARRAY                                       ~21     !0, 'object'
         32        ADD_ARRAY_ELEMENT                                ~21     !1, 'export'
         33        FETCH_OBJ_W                                      $19     'behaviors'
         34        ASSIGN_DIM                                               $19
         35        OP_DATA                                                  ~21
   15    36      > JMP                                                      ->15
         37    >   FE_FREE                                                  $11
   21    38        FETCH_THIS                                       ~22     
         39      > RETURN                                                   ~22
   22    40*     > RETURN                                                   null

End of function addbehavior

Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 33
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 33
Branch analysis from position: 5
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 32
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 22
Branch analysis from position: 15
Branch analysis from position: 33
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 33
filename:       /in/kDGZS
function name:  __call
number of ops:  45
compiled vars:  !0 = $name, !1 = $arguments, !2 = $behavior, !3 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   26     2        FETCH_OBJ_R                                      ~4      'behaviors'
          3      > FE_RESET_R                                       $5      ~4, ->33
          4    > > FE_FETCH_R                                               $5, !2, ->33
   27     5    >   INIT_FCALL                                               'in_array'
          6        SEND_VAR                                                 !0
          7        FETCH_DIM_R                                      ~6      !2, 'export'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10      > JMPNZ_EX                                         ~8      $7, ->15
         11    >   FETCH_DIM_R                                      ~9      !2, 'export'
         12        COUNT                                            ~10     ~9
         13        BOOL_NOT                                         ~11     ~10
         14        BOOL                                             ~8      ~11
         15    > > JMPZ_EX                                          ~8      ~8, ->22
         16    >   INIT_FCALL                                               'method_exists'
         17        FETCH_DIM_R                                      ~12     !2, 'object'
         18        SEND_VAL                                                 ~12
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $13     
         21        BOOL                                             ~8      $13
         22    > > JMPZ                                                     ~8, ->32
   28    23    >   FETCH_DIM_R                                      ~14     !2, 'object'
         24        INIT_ARRAY                                       ~15     ~14
         25        ADD_ARRAY_ELEMENT                                ~15     !0
         26        INIT_USER_CALL                                0          'call_user_func_array', ~15
         27        SEND_ARRAY                                               !1
         28        CHECK_UNDEF_ARGS                                         
         29        DO_FCALL                                      0  $16     
         30        FE_FREE                                                  $5
         31      > RETURN                                                   $16
   26    32    > > JMP                                                      ->4
         33    >   FE_FREE                                                  $5
   31    34        GET_CALLED_CLASS                                 ~17     
         35        ASSIGN                                                   !3, ~17
   32    36        NEW                                              $19     'Exception'
         37        CONCAT                                           ~20     'Method+%22', !0
         38        CONCAT                                           ~21     ~20, '%22+does+not+exist+in+class+%22'
         39        CONCAT                                           ~22     ~21, !3
         40        CONCAT                                           ~23     ~22, '%22'
         41        SEND_VAL_EX                                              ~23
         42        DO_FCALL                                      0          
         43      > THROW                                         0          $19
   33    44*     > RETURN                                                   null

End of function __call

End of class HuiService.

Class HuiService2:
Function addbehavior:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 37
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 37
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 31
Branch analysis from position: 27
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 26
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/kDGZS
function name:  addBehavior
number of ops:  41
compiled vars:  !0 = $b, !1 = $export, !2 = $behavior
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
   11     2        FETCH_OBJ_R                                      ~3      'behaviors'
          3        COUNT                                            ~4      ~3
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ                                                     ~5, ->13
   12     6    >   INIT_ARRAY                                       ~8      !0, 'object'
          7        ADD_ARRAY_ELEMENT                                ~8      !1, 'export'
          8        FETCH_OBJ_W                                      $6      'behaviors'
          9        ASSIGN_DIM                                               $6
         10        OP_DATA                                                  ~8
   13    11        FETCH_THIS                                       ~9      
         12      > RETURN                                                   ~9
   15    13    >   FETCH_OBJ_R                                      ~10     'behaviors'
         14      > FE_RESET_R                                       $11     ~10, ->37
         15    > > FE_FETCH_R                                               $11, !2, ->37
   16    16    >   COUNT                                            ~12     !1
         17      > JMPZ_EX                                          ~12     ~12, ->26
         18    >   INIT_FCALL                                               'array_intersect'
         19        FETCH_DIM_R                                      ~13     !2, 'export'
         20        SEND_VAL                                                 ~13
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $14     
         23        COUNT                                            ~15     $14
         24        IS_SMALLER                                       ~16     0, ~15
         25        BOOL                                             ~12     ~16
         26    > > JMPZ                                                     ~12, ->31
   17    27    >   NEW                                              $17     'Exception'
         28        SEND_VAL_EX                                              'Some+of+export+methods+already+exists'
         29        DO_FCALL                                      0          
         30      > THROW                                         0          $17
   19    31    >   INIT_ARRAY                                       ~21     !0, 'object'
         32        ADD_ARRAY_ELEMENT                                ~21     !1, 'export'
         33        FETCH_OBJ_W                                      $19     'behaviors'
         34        ASSIGN_DIM                                               $19
         35        OP_DATA                                                  ~21
   15    36      > JMP                                                      ->15
         37    >   FE_FREE                                                  $11
   21    38        FETCH_THIS                                       ~22     
         39      > RETURN                                                   ~22
   22    40*     > RETURN                                                   null

End of function addbehavior

Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 33
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 33
Branch analysis from position: 5
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 32
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 22
Branch analysis from position: 15
Branch analysis from position: 33
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 33
filename:       /in/kDGZS
function name:  __call
number of ops:  45
compiled vars:  !0 = $name, !1 = $arguments, !2 = $behavior, !3 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   26     2        FETCH_OBJ_R                                      ~4      'behaviors'
          3      > FE_RESET_R                                       $5      ~4, ->33
          4    > > FE_FETCH_R                                               $5, !2, ->33
   27     5    >   INIT_FCALL                                               'in_array'
          6        SEND_VAR                                                 !0
          7        FETCH_DIM_R                                      ~6      !2, 'export'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10      > JMPNZ_EX                                         ~8      $7, ->15
         11    >   FETCH_DIM_R                                      ~9      !2, 'export'
         12        COUNT                                            ~10     ~9
         13        BOOL_NOT                                         ~11     ~10
         14        BOOL                                             ~8      ~11
         15    > > JMPZ_EX                                          ~8      ~8, ->22
         16    >   INIT_FCALL                                               'method_exists'
         17        FETCH_DIM_R                                      ~12     !2, 'object'
         18        SEND_VAL                                                 ~12
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $13     
         21        BOOL                                             ~8      $13
         22    > > JMPZ                                                     ~8, ->32
   28    23    >   FETCH_DIM_R                                      ~14     !2, 'object'
         24    

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.25 ms | 1428 KiB | 19 Q