3v4l.org

run code in 300+ PHP versions simultaneously
<?php class address { public $street1 = " abc "; public $street2 = " abc "; public $city = " abc "; public $state = " abc "; public $zip = " abc "; public function setProperty1($newval) { $this->street1 = $newval; } public function getProperty1() { return $this->street1 . "<br />"; } public function setProperty2($newval) { $this->street2 = $newval; } public function getProperty2() { return $this->street2 . "<br />"; } public function setProperty3($newval) { $this->city = $newval; } public function getProperty3() { return $this->city . "<br />"; } public function setProperty4($newval) { $this->state = $newval; } public function getProperty4() { return $this->state . "<br />"; } public function setProperty5($newval) { $this->zip = $newval; } public function getProperty5() { return $this->zip . "<br />"; } } // Create objects $obj1 = new address; $obj2 = new address; $obj3 = new address; $obj4 = new address; // Set new values for all objects $obj1->setProperty1("street11"); $obj1->setProperty2("street21"); $obj1->setProperty3("city1"); $obj1->setProperty4("state1"); $obj1->setProperty5("zip1"); $obj2->setProperty1("street12"); $obj2->setProperty2("street22"); $obj2->setProperty3("city2"); $obj2->setProperty4("state2"); $obj2->setProperty5("zip2"); $obj3->setProperty1("street13"); $obj3->setProperty2("street23"); $obj3->setProperty3("city3"); $obj3->setProperty4("state3"); $obj3->setProperty5("zip3"); $obj4->setProperty1("street14"); $obj4->setProperty2("street24"); $obj4->setProperty3("city4"); $obj4->setProperty4("state4"); $obj4->setProperty5("zip4"); echo "\n"; // Output echo $obj1->getProperty1(); echo $obj1->getProperty2(); echo $obj1->getProperty3(); echo $obj1->getProperty4(); echo $obj1->getProperty5(); echo "\n"; echo $obj2->getProperty1(); echo $obj2->getProperty2(); echo $obj2->getProperty3(); echo $obj2->getProperty4(); echo $obj2->getProperty5(); echo "\n"; echo $obj3->getProperty1(); echo $obj3->getProperty2(); echo $obj3->getProperty3(); echo $obj3->getProperty4(); echo $obj3->getProperty5(); echo "\n"; echo $obj4->getProperty1(); echo $obj4->getProperty2(); echo $obj4->getProperty3(); echo $obj4->getProperty4(); echo $obj4->getProperty5(); echo "\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  (null)
number of ops:  138
compiled vars:  !0 = $obj1, !1 = $obj2, !2 = $obj3, !3 = $obj4
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   54     0  E >   NEW                                              $4      'address'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   55     3        NEW                                              $7      'address'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $7
   56     6        NEW                                              $10     'address'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $10
   57     9        NEW                                              $13     'address'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !3, $13
   59    12        INIT_METHOD_CALL                                         !0, 'setProperty1'
         13        SEND_VAL_EX                                              'street11'
         14        DO_FCALL                                      0          
   60    15        INIT_METHOD_CALL                                         !0, 'setProperty2'
         16        SEND_VAL_EX                                              'street21'
         17        DO_FCALL                                      0          
   61    18        INIT_METHOD_CALL                                         !0, 'setProperty3'
         19        SEND_VAL_EX                                              'city1'
         20        DO_FCALL                                      0          
   62    21        INIT_METHOD_CALL                                         !0, 'setProperty4'
         22        SEND_VAL_EX                                              'state1'
         23        DO_FCALL                                      0          
   63    24        INIT_METHOD_CALL                                         !0, 'setProperty5'
         25        SEND_VAL_EX                                              'zip1'
         26        DO_FCALL                                      0          
   65    27        INIT_METHOD_CALL                                         !1, 'setProperty1'
         28        SEND_VAL_EX                                              'street12'
         29        DO_FCALL                                      0          
   66    30        INIT_METHOD_CALL                                         !1, 'setProperty2'
         31        SEND_VAL_EX                                              'street22'
         32        DO_FCALL                                      0          
   67    33        INIT_METHOD_CALL                                         !1, 'setProperty3'
         34        SEND_VAL_EX                                              'city2'
         35        DO_FCALL                                      0          
   68    36        INIT_METHOD_CALL                                         !1, 'setProperty4'
         37        SEND_VAL_EX                                              'state2'
         38        DO_FCALL                                      0          
   69    39        INIT_METHOD_CALL                                         !1, 'setProperty5'
         40        SEND_VAL_EX                                              'zip2'
         41        DO_FCALL                                      0          
   71    42        INIT_METHOD_CALL                                         !2, 'setProperty1'
         43        SEND_VAL_EX                                              'street13'
         44        DO_FCALL                                      0          
   72    45        INIT_METHOD_CALL                                         !2, 'setProperty2'
         46        SEND_VAL_EX                                              'street23'
         47        DO_FCALL                                      0          
   73    48        INIT_METHOD_CALL                                         !2, 'setProperty3'
         49        SEND_VAL_EX                                              'city3'
         50        DO_FCALL                                      0          
   74    51        INIT_METHOD_CALL                                         !2, 'setProperty4'
         52        SEND_VAL_EX                                              'state3'
         53        DO_FCALL                                      0          
   75    54        INIT_METHOD_CALL                                         !2, 'setProperty5'
         55        SEND_VAL_EX                                              'zip3'
         56        DO_FCALL                                      0          
   77    57        INIT_METHOD_CALL                                         !3, 'setProperty1'
         58        SEND_VAL_EX                                              'street14'
         59        DO_FCALL                                      0          
   78    60        INIT_METHOD_CALL                                         !3, 'setProperty2'
         61        SEND_VAL_EX                                              'street24'
         62        DO_FCALL                                      0          
   79    63        INIT_METHOD_CALL                                         !3, 'setProperty3'
         64        SEND_VAL_EX                                              'city4'
         65        DO_FCALL                                      0          
   80    66        INIT_METHOD_CALL                                         !3, 'setProperty4'
         67        SEND_VAL_EX                                              'state4'
         68        DO_FCALL                                      0          
   81    69        INIT_METHOD_CALL                                         !3, 'setProperty5'
         70        SEND_VAL_EX                                              'zip4'
         71        DO_FCALL                                      0          
   83    72        ECHO                                                     '%0A'
   86    73        INIT_METHOD_CALL                                         !0, 'getProperty1'
         74        DO_FCALL                                      0  $36     
         75        ECHO                                                     $36
   87    76        INIT_METHOD_CALL                                         !0, 'getProperty2'
         77        DO_FCALL                                      0  $37     
         78        ECHO                                                     $37
   88    79        INIT_METHOD_CALL                                         !0, 'getProperty3'
         80        DO_FCALL                                      0  $38     
         81        ECHO                                                     $38
   89    82        INIT_METHOD_CALL                                         !0, 'getProperty4'
         83        DO_FCALL                                      0  $39     
         84        ECHO                                                     $39
   90    85        INIT_METHOD_CALL                                         !0, 'getProperty5'
         86        DO_FCALL                                      0  $40     
         87        ECHO                                                     $40
   92    88        ECHO                                                     '%0A'
   94    89        INIT_METHOD_CALL                                         !1, 'getProperty1'
         90        DO_FCALL                                      0  $41     
         91        ECHO                                                     $41
   95    92        INIT_METHOD_CALL                                         !1, 'getProperty2'
         93        DO_FCALL                                      0  $42     
         94        ECHO                                                     $42
   96    95        INIT_METHOD_CALL                                         !1, 'getProperty3'
         96        DO_FCALL                                      0  $43     
         97        ECHO                                                     $43
   97    98        INIT_METHOD_CALL                                         !1, 'getProperty4'
         99        DO_FCALL                                      0  $44     
        100        ECHO                                                     $44
   98   101        INIT_METHOD_CALL                                         !1, 'getProperty5'
        102        DO_FCALL                                      0  $45     
        103        ECHO                                                     $45
  100   104        ECHO                                                     '%0A'
  102   105        INIT_METHOD_CALL                                         !2, 'getProperty1'
        106        DO_FCALL                                      0  $46     
        107        ECHO                                                     $46
  103   108        INIT_METHOD_CALL                                         !2, 'getProperty2'
        109        DO_FCALL                                      0  $47     
        110        ECHO                                                     $47
  104   111        INIT_METHOD_CALL                                         !2, 'getProperty3'
        112        DO_FCALL                                      0  $48     
        113        ECHO                                                     $48
  105   114        INIT_METHOD_CALL                                         !2, 'getProperty4'
        115        DO_FCALL                                      0  $49     
        116        ECHO                                                     $49
  106   117        INIT_METHOD_CALL                                         !2, 'getProperty5'
        118        DO_FCALL                                      0  $50     
        119        ECHO                                                     $50
  108   120        ECHO                                                     '%0A'
  110   121        INIT_METHOD_CALL                                         !3, 'getProperty1'
        122        DO_FCALL                                      0  $51     
        123        ECHO                                                     $51
  111   124        INIT_METHOD_CALL                                         !3, 'getProperty2'
        125        DO_FCALL                                      0  $52     
        126        ECHO                                                     $52
  112   127        INIT_METHOD_CALL                                         !3, 'getProperty3'
        128        DO_FCALL                                      0  $53     
        129        ECHO                                                     $53
  113   130        INIT_METHOD_CALL                                         !3, 'getProperty4'
        131        DO_FCALL                                      0  $54     
        132        ECHO                                                     $54
  114   133        INIT_METHOD_CALL                                         !3, 'getProperty5'
        134        DO_FCALL                                      0  $55     
        135        ECHO                                                     $55
  116   136        ECHO                                                     '%0A'
  118   137      > RETURN                                                   1

Class address:
Function setproperty1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  setProperty1
number of ops:  4
compiled vars:  !0 = $newval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        ASSIGN_OBJ                                               'street1'
          2        OP_DATA                                                  !0
   14     3      > RETURN                                                   null

End of function setproperty1

Function getproperty1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  getProperty1
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   FETCH_OBJ_R                                      ~0      'street1'
          1        CONCAT                                           ~1      ~0, '%3Cbr+%2F%3E'
          2      > RETURN                                                   ~1
   18     3*     > RETURN                                                   null

End of function getproperty1

Function setproperty2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  setProperty2
number of ops:  4
compiled vars:  !0 = $newval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   21     1        ASSIGN_OBJ                                               'street2'
          2        OP_DATA                                                  !0
   22     3      > RETURN                                                   null

End of function setproperty2

Function getproperty2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  getProperty2
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   FETCH_OBJ_R                                      ~0      'street2'
          1        CONCAT                                           ~1      ~0, '%3Cbr+%2F%3E'
          2      > RETURN                                                   ~1
   26     3*     > RETURN                                                   null

End of function getproperty2

Function setproperty3:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  setProperty3
number of ops:  4
compiled vars:  !0 = $newval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   RECV                                             !0      
   29     1        ASSIGN_OBJ                                               'city'
          2        OP_DATA                                                  !0
   30     3      > RETURN                                                   null

End of function setproperty3

Function getproperty3:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  getProperty3
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   FETCH_OBJ_R                                      ~0      'city'
          1        CONCAT                                           ~1      ~0, '%3Cbr+%2F%3E'
          2      > RETURN                                                   ~1
   34     3*     > RETURN                                                   null

End of function getproperty3

Function setproperty4:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  setProperty4
number of ops:  4
compiled vars:  !0 = $newval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   35     0  E >   RECV                                             !0      
   37     1        ASSIGN_OBJ                                               'state'
          2        OP_DATA                                                  !0
   38     3      > RETURN                                                   null

End of function setproperty4

Function getproperty4:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  getProperty4
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   41     0  E >   FETCH_OBJ_R                                      ~0      'state'
          1        CONCAT                                           ~1      ~0, '%3Cbr+%2F%3E'
          2      > RETURN                                                   ~1
   42     3*     > RETURN                                                   null

End of function getproperty4

Function setproperty5:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  setProperty5
number of ops:  4
compiled vars:  !0 = $newval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E >   RECV                                             !0      
   45     1        ASSIGN_OBJ                                               'zip'
          2        OP_DATA                                                  !0
   46     3      > RETURN                                                   null

End of function setproperty5

Function getproperty5:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iikev
function name:  getProperty5
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   49     0  E >   FETCH_OBJ_R                                      ~0      'zip'
          1        CONCAT                                           ~1      ~0, '%3Cbr+%2F%3E'
          2      > RETURN                                                   ~1
   50     3*     > RETURN                                                   null

End of function getproperty5

End of class address.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.31 ms | 1402 KiB | 13 Q