3v4l.org

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

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

End of function baz

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

End of function foo

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.86 ms | 1394 KiB | 13 Q