3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ function isFoo(){} } (function(){ /** @var Foo $this */ var_dump($this->isFoo()); }) ->bindTo(new Foo) ->bindTo(new stdclass) ();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T1eGX
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_LAMBDA_FUNCTION                          ~0      [0]
    9     1        INIT_METHOD_CALL                                         ~0, 'bindTo'
          2        NEW                                              $1      'Foo'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $1
          5        DO_FCALL                                      0  $3      
   10     6        INIT_METHOD_CALL                                         $3, 'bindTo'
          7        NEW                                              $4      'stdclass'
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $4
         10        DO_FCALL                                      0  $6      
         11        INIT_DYNAMIC_CALL                                        $6
   11    12        DO_FCALL                                      0          
         13      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T1eGX
function name:  {closure}
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_THIS                                       $0      
          2        INIT_METHOD_CALL                                         $0, 'isFoo'
          3        DO_FCALL                                      0  $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    8     6      > RETURN                                                   null

End of Dynamic Function 0

Class Foo:
Function isfoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T1eGX
function name:  isFoo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function isfoo

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.09 ms | 998 KiB | 14 Q