3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function run(): void { } } class Bar extends Foo { /** * @return never */ public function run(): void { exit; } } new Bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7u2rKv
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   NEW                                                  $0      'Bar'
          1        DO_FCALL                                          0          
          2        FREE                                                         $0
          3      > RETURN                                                       1

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

End of function run

End of class Foo.

Class Bar:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 61) Position 1 = -2
filename:       /in/7u2rKv
function name:  run
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E > > INIT_FCALL                                                   'exit'
          1*       DO_ICALL                                                     
   15     2*     > RETURN                                                       null

End of function run

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
174.53 ms | 1203 KiB | 14 Q