3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KAWdD
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'impl1'
   12     1        DECLARE_CLASS                                            'impl2'
   27     2        INIT_FCALL                                               'getimpl'
          3        DO_FCALL                                      0  $0      
          4        INIT_METHOD_CALL                                         $0, 'run'
          5        SEND_VAL_EX                                              'foo', 'details'
          6        CHECK_UNDEF_ARGS                                         
          7        DO_FCALL                                      1          
   28     8        INIT_FCALL                                               'getimpl'
          9        DO_FCALL                                      0  $2      
         10        INIT_METHOD_CALL                                         $2, 'run'
         11        SEND_VAL_EX                                              'foo', 'details'
         12        CHECK_UNDEF_ARGS                                         
         13        DO_FCALL                                      1          
         14      > RETURN                                                   1

Function getimpl:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KAWdD
function name:  getImpl
number of ops:  14
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   BIND_STATIC                                              !0
   20     1        IS_IDENTICAL                                             !0, 1
          2      > JMPZ                                                     ~1, ->7
   21     3    >   NEW                                              $2      'Impl2'
          4        DO_FCALL                                      0          
          5        VERIFY_RETURN_TYPE                                       $2
          6      > RETURN                                                   $2
   23     7    >   PRE_INC                                                  !0
   24     8        NEW                                              $5      'Impl1'
          9        DO_FCALL                                      0          
         10        VERIFY_RETURN_TYPE                                       $5
         11      > RETURN                                                   $5
   25    12*       VERIFY_RETURN_TYPE                                       
         13*     > RETURN                                                   null

End of function getimpl

Class Runnable:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KAWdD
function name:  run
number of ops:  2
compiled vars:  !0 = $details
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function run

End of class Runnable.

Class Impl1:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KAWdD
function name:  run
number of ops:  2
compiled vars:  !0 = $details
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1      > RETURN                                                   null

End of function run

End of class Impl1.

Class Impl2:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KAWdD
function name:  run
number of ops:  2
compiled vars:  !0 = $other
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1      > RETURN                                                   null

End of function run

End of class Impl2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.11 ms | 967 KiB | 15 Q