3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function hello() { echo "Hello"; } public function bye() { echo "Bye"; } } $test = (new Test)->hello(); $test->bye();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jB9tG
function name:  (null)
number of ops:  8
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $1, 'hello'
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !0, $3
   13     5        INIT_METHOD_CALL                                         !0, 'bye'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function hello

Function bye:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jB9tG
function name:  bye
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'Bye'
    9     1      > RETURN                                                   null

End of function bye

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.03 ms | 1393 KiB | 13 Q