3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class S{ public function __construct(){ echo 'S'; } public function voice(){ return 'myVoice'; } } $va = new S(); var_dump($va->voice);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LJ2R6
function name:  (null)
number of ops:  8
compiled vars:  !0 = $va
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'S'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_R                                      ~4      !0, 'voice'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

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

End of function __construct

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

End of function voice

End of class S.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.79 ms | 1395 KiB | 15 Q