3v4l.org

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

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

End of function fun

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.08 ms | 1393 KiB | 13 Q