3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public const FINAL = 123; public static function final() { echo __METHOD__, PHP_EOL, self::FINAL, PHP_EOL; } } Test::final();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gqDDX
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_STATIC_METHOD_CALL                                  'Test', 'final'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class Test:
Function final:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gqDDX
function name:  final
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'Test%3A%3Afinal'
          1        ECHO                                                     '%0A'
          2        ECHO                                                     123
          3        ECHO                                                     '%0A'
    9     4      > RETURN                                                   null

End of function final

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.6 ms | 1009 KiB | 13 Q