3v4l.org

run code in 300+ PHP versions simultaneously
<?php class someClass { static $property = 'This calls the property'; static function someMethod() { echo 'Method Variable called'; } } print someClass::$property; $property = 'someMethod'; print someClass::$property(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1J3nF
function name:  (null)
number of ops:  7
compiled vars:  !0 = $property
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_STATIC_PROP_R          unknown             ~1      'property'
          1        ECHO                                                     ~1
   11     2        ASSIGN                                                   !0, 'someMethod'
   12     3        INIT_STATIC_METHOD_CALL                                  'someClass', !0
          4        DO_FCALL                                      0  $3      
          5        ECHO                                                     $3
   14     6      > RETURN                                                   1

Class someClass:
Function somemethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1J3nF
function name:  someMethod
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'Method+Variable+called'
    7     1      > RETURN                                                   null

End of function somemethod

End of class someClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
213.38 ms | 1393 KiB | 13 Q