3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); final class Greeter { public function greet(): void { echo $$this->greetText(); } public function greetText(): string { return 'Hello World'; } } $g = new Greeter(); $g->greet();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mhr52
function name:  (null)
number of ops:  6
compiled vars:  !0 = $g
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Greeter'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'greet'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Greeter:
Function greet:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mhr52
function name:  greet
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_THIS                                       ~0      
          1        FETCH_R                      local               ~1      ~0
          2        INIT_METHOD_CALL                                         ~1, 'greetText'
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
   10     5      > RETURN                                                   null

End of function greet

Function greettext:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mhr52
function name:  greetText
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   'Hello+World'
   15     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function greettext

End of class Greeter.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
287.09 ms | 1080 KiB | 13 Q