3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait SomeTrait { public function __call($method, array $parameters) { // ... return is_callable(['parent', '__call']) ? parent::__call($method, $parameters) : null; } } class GreatParentClass { } $class = new GreateParentClass();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EcFQ4
function name:  (null)
number of ops:  4
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'GreateParentClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class SomeTrait:
Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EcFQ4
function name:  __call
number of ops:  15
compiled vars:  !0 = $method, !1 = $parameters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        INIT_FCALL                                               'is_callable'
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->12
          6    >   INIT_STATIC_METHOD_CALL                                  '__call'
          7        SEND_VAR_EX                                              !0
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $3      
         10        QM_ASSIGN                                        ~4      $3
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~4      null
         13    > > RETURN                                                   ~4
    9    14*     > RETURN                                                   null

End of function __call

End of class SomeTrait.

Class GreatParentClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.24 ms | 1395 KiB | 15 Q