3v4l.org

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

Class test:
Function set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5Abe
function name:  set
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 10
    8     1      > RETURN                                                   null

End of function set

Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5Abe
function name:  get
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   !0
   12     1*     > RETURN                                                   null

End of function get

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.3 ms | 1385 KiB | 13 Q