3v4l.org

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

Class C:
Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) 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 8.0.0


preferences:
147.67 ms | 1394 KiB | 15 Q