3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $ptest ; public function getPtest() { return $this->ptest ; } public function setPtest($test) { $this->ptest = $test ; } public function println() { printf("%s" , $this->ptest); } } $obj_test = new test() ; $obj_test->ptest = 'aaaaa' ; $obj_test->println();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ecb2c
function name:  (null)
number of ops:  8
compiled vars:  !0 = $obj_test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        ASSIGN_OBJ                                               !0, 'ptest'
          4        OP_DATA                                                  'aaaaa'
   19     5        INIT_METHOD_CALL                                         !0, 'println'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function getptest

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

End of function setptest

Function println:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ecb2c
function name:  println
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'printf'
          1        SEND_VAL                                                 '%25s'
          2        FETCH_OBJ_R                                      ~0      'ptest'
          3        SEND_VAL                                                 ~0
          4        DO_ICALL                                                 
   14     5      > RETURN                                                   null

End of function println

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.77 ms | 1396 KiB | 15 Q