3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo_3cc087f8ef209c33982a75e4dd830bb9 { public static function foo() { var_dump(get_called_class(), __CLASS__); return static::bar(); } } class Foo_40a590187207cbf21fdfdda3d84ea122 extends Foo_3cc087f8ef209c33982a75e4dd830bb9 { protected static function bar() { return __CLASS__; } } echo Foo_40a590187207cbf21fdfdda3d84ea122::foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p6oYr
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_STATIC_METHOD_CALL                                  'Foo_40a590187207cbf21fdfdda3d84ea122', 'foo'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Class Foo_3cc087f8ef209c33982a75e4dd830bb9:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p6oYr
function name:  foo
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        GET_CALLED_CLASS                                 ~0      
          2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 'Foo_3cc087f8ef209c33982a75e4dd830bb9'
          4        DO_ICALL                                                 
          5        INIT_STATIC_METHOD_CALL                                  'bar'
          6        DO_FCALL                                      0  $2      
          7      > RETURN                                                   $2
          8*     > RETURN                                                   null

End of function foo

End of class Foo_3cc087f8ef209c33982a75e4dd830bb9.

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

End of function bar

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p6oYr
function name:  foo
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        GET_CALLED_CLASS                                 ~0      
          2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 'Foo_3cc087f8ef209c33982a75e4dd830bb9'
          4        DO_ICALL                                                 
          5        INIT_STATIC_METHOD_CALL                                  'bar'
          6        DO_FCALL                                      0  $2      
          7      > RETURN                                                   $2
          8*     > RETURN                                                   null

End of function foo

End of class Foo_40a590187207cbf21fdfdda3d84ea122.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.26 ms | 1396 KiB | 15 Q