3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class FinalConstructFoo { final function __construct() { } public function doFoo(): void { new static(); } public static function staticDoFoo(): void { new static(); } } FinalConstructFoo::staticDoFoo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gilGt
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_STATIC_METHOD_CALL                                  'FinalConstructFoo', 'staticDoFoo'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function __construct

Function dofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gilGt
function name:  doFoo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                          static              $0      
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   10     3      > RETURN                                                   null

End of function dofoo

Function staticdofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gilGt
function name:  staticDoFoo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                          static              $0      
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   14     3      > RETURN                                                   null

End of function staticdofoo

End of class FinalConstructFoo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.26 ms | 995 KiB | 13 Q