3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { public static int $sp = 1; public static function sm(): int { return 2; } // public const C = 3; } var_dump(T::$sp); var_dump(T::sm()); // var_dump(T::C);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eGlYm
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_STATIC_PROP_R          global lock         ~0      'sp'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   10     4        INIT_FCALL                                               'var_dump'
          5        INIT_STATIC_METHOD_CALL                                  'T', 'sm'
          6        DO_FCALL                                      0  $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
   11     9      > RETURN                                                   1

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

End of function sm

End of class T.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.79 ms | 1394 KiB | 15 Q