3v4l.org

run code in 300+ PHP versions simultaneously
<?php CLASS test{ public $x=1; private $y=2; public function changeA($val){ //$this->x = $val; echo "X-->".$this->x; } private function changeB($val){ //$this->y = $val; echo "Y-->".$this->y; } }; $a = new test(); $a->changeA(3); # $a->changeB(4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vJHRO
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3        INIT_METHOD_CALL                                         !0, 'changeA'
          4        SEND_VAL_EX                                              3
          5        DO_FCALL                                      0          
   23     6        INIT_METHOD_CALL                                         !0, 'changeB'
          7        SEND_VAL_EX                                              4
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class test:
Function changea:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vJHRO
function name:  changeA
number of ops:  5
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        FETCH_OBJ_R                                      ~1      'x'
          2        CONCAT                                           ~2      'X--%3E', ~1
          3        ECHO                                                     ~2
   11     4      > RETURN                                                   null

End of function changea

Function changeb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vJHRO
function name:  changeB
number of ops:  5
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        FETCH_OBJ_R                                      ~1      'y'
          2        CONCAT                                           ~2      'Y--%3E', ~1
          3        ECHO                                                     ~2
   16     4      > RETURN                                                   null

End of function changeb

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.14 ms | 1394 KiB | 13 Q