3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Utils { public static function doesItWork(): string { return "Yes, it does"; } } print Utils::doesItWork();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dKc07
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'utils'
   10     1        INIT_STATIC_METHOD_CALL                                  'Utils', 'doesItWork'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Class Utils:
Function doesitwork:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dKc07
function name:  doesItWork
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   'Yes%2C+it+does'
    7     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function doesitwork

End of class Utils.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.16 ms | 1006 KiB | 13 Q