3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $heh = 'foo'; class C { public function c() { var_dump($heh); } } $c = new C(); $c->c();
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/AX93Z
function name:  (null)
number of ops:  8
compiled vars:  !0 = $heh, !1 = $c
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'foo'
   5     1        NOP                                                      
  11     2        NEW                                              $4      :-5
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !1, $4
  12     5        INIT_METHOD_CALL                                         !1, 'c'
         6        DO_FCALL                                      0          
         7      > RETURN                                                   1

Class C:
Function c:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/AX93Z
function name:  c
number of ops:  4
compiled vars:  !0 = $heh
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E >   INIT_FCALL                                               'var_dump'
         1        SEND_VAR                                                 !0
         2        DO_ICALL                                                 
   8     3      > RETURN                                                   null

End of function c

End of class C.

Generated using Vulcan Logic Dumper, using php 7.2.0