3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function foo(self $bar){} } class Test2 { public static function foo(self $bar){} } $t = new Test(); $t2 = new Test2(); $t::foo($t2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1FiaP
function name:  (null)
number of ops:  11
compiled vars:  !0 = $t, !1 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   14     3        NEW                                              $5      'Test2'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   15     6        FETCH_CLASS                                   0  $8      !0
          7        INIT_STATIC_METHOD_CALL                                  $8, 'foo'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function foo

End of class Test.

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

End of function foo

End of class Test2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.62 ms | 1385 KiB | 13 Q