3v4l.org

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

Class a:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GfTme
function name:  a
number of ops:  4
compiled vars:  !0 = $pass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN_OBJ                                               'c'
          2        OP_DATA                                                  !0
          3      > RETURN                                                   null

End of function a

Function print_data:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GfTme
function name:  print_data
number of ops:  3
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~1      !0
          1        ECHO                                                     ~1
          2      > RETURN                                                   null

End of function print_data

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.94 ms | 1394 KiB | 13 Q