3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public const CONST_VARIABLE = 'constant variable'; public static $staticVal = 'my is stattic variable'; public static function showResult() { echo self::CONST_VARIABLE; echo self::$staticVal; } } TestClass::showResult();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8c40R
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'TestClass', 'showResult'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class TestClass:
Function showresult:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8c40R
function name:  showResult
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'constant+variable'
   11     1        FETCH_STATIC_PROP_R          unknown             ~0      'staticVal'
          2        ECHO                                                     ~0
   12     3      > RETURN                                                   null

End of function showresult

End of class TestClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.87 ms | 1392 KiB | 13 Q