3v4l.org

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

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

End of function getvalue

Function setvalue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kbpe5
function name:  setValue
number of ops:  5
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               'value'
          2        OP_DATA                                                  !0
   11     3      > RETURN                                                   <true>
   12     4*     > RETURN                                                   null

End of function setvalue

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.57 ms | 1398 KiB | 13 Q