3v4l.org

run code in 500+ PHP versions simultaneously
<?php class SomeClass { public function go() { $this->item = 1; } public function away() { return $this->item; } } $someClass = new SomeClass; $someClass->go(); var_dump($someClass->away());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GL6II
function name:  (null)
number of ops:  11
compiled vars:  !0 = $someClass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'SomeClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'go'
          4        DO_FCALL                                      0          
   19     5        INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !0, 'away'
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class SomeClass:
Function go:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GL6II
function name:  go
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_OBJ                                               'item'
          1        OP_DATA                                                  1
    8     2      > RETURN                                                   null

End of function go

Function away:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GL6II
function name:  away
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_OBJ_R                                      ~0      'item'
          1      > RETURN                                                   ~0
   13     2*     > RETURN                                                   null

End of function away

End of class SomeClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
210.6 ms | 2282 KiB | 14 Q