3v4l.org

run code in 500+ PHP versions simultaneously
<?php class foo { private static $foo = true; public static function test() { var_dump(isset(static::$foo)); } } class none extends foo { } class overmethod extends foo { public static function test() { var_dump(isset(static::$foo)); } } class overprop extends foo { private static $foo = null; } none::test(); overmethod::test(); overprop::test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3cJ5N
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   25     0  E >   INIT_STATIC_METHOD_CALL                                      'none', 'test'
          1        DO_FCALL                                          0          
   26     2        INIT_STATIC_METHOD_CALL                                      'overmethod', 'test'
          3        DO_FCALL                                          0          
   27     4        INIT_STATIC_METHOD_CALL                                      'overprop', 'test'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

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

End of function test

End of class foo.

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

End of function test

End of class none.

Class overmethod:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3cJ5N
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                                   'var_dump'
          1        ISSET_ISEMPTY_STATIC_PROP                            ~0      'foo'
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
   18     4      > RETURN                                                       null

End of function test

End of class overmethod.

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

End of function test

End of class overprop.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
231.41 ms | 3283 KiB | 14 Q