3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const NAME = self::class; public function test() { new ${static::NAME}(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QkEpn
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   1

Class Test:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QkEpn
function name:  test
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_CLASS_CONSTANT                             ~0      'NAME'
          1        FETCH_R                      local               ~1      ~0
          2        FETCH_CLASS                                   0  $2      ~1
          3        NEW                                              $3      $2
          4        DO_FCALL                                      0          
          5        FREE                                                     $3
   10     6      > RETURN                                                   null

End of function test

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.25 ms | 1392 KiB | 13 Q