3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TestTrait { public static function testStaticFunction() { return __CLASS__; } } class Tester { use TestTrait; } $tester = Tester::testStaticFunction();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PIR0q
function name:  (null)
number of ops:  5
compiled vars:  !0 = $tester
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   DECLARE_CLASS                                            'tester'
   14     1        INIT_STATIC_METHOD_CALL                                  'Tester', 'testStaticFunction'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class TestTrait:
Function teststaticfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PIR0q
function name:  testStaticFunction
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_CLASS_NAME                                 ~0      
          1      > RETURN                                                   ~0
    8     2*     > RETURN                                                   null

End of function teststaticfunction

End of class TestTrait.

Class Tester: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.94 ms | 1397 KiB | 13 Q