3v4l.org

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

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

End of function set_name

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

End of function get_name

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.78 ms | 1398 KiB | 13 Q