3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 50000; class ValueObject { private $f0; private $f1; private $f2; private $f3; private $f4; private $f5; private $f6; private $f7; private $f8; private $f9; public function getF0() { return $this->f0; } public function setF0($v) { $this->f0 = $v; } public function getF1() { return $this->f1; } public function setF1($v) { $this->f1 = $v; } public function getF2() { return $this->f2; } public function setF2($v) { $this->f2 = $v; } public function getF3() { return $this->f3; } public function setF3($v) { $this->f3 = $v; } public function getF4() { return $this->f4; } public function setF4($v) { $this->f4 = $v; } public function getF5() { return $this->f5; } public function setF5($v) { $this->f5 = $v; } public function getF6() { return $this->f6; } public function setF6($v) { $this->f6 = $v; } public function getF7() { return $this->f7; } public function setF7($v) { $this->f7 = $v; } public function getF8() { return $this->f8; } public function setF8($v) { $this->f8 = $v; } public function getF9() { return $this->f9; } public function setF9($v) { $this->f9 = $v; } } $time = microtime(true); $items = array(); for ($i = 0; $i < $count; $i++) { $item = new ValueObject(); $item->setF0('value 0'); $item->setF1('value 1'); $item->setF2('value 2'); $item->setF3('value 3'); $item->setF4('value 4'); $item->setF5('value 5'); $item->setF6('value 6'); $item->setF7('value 7'); $item->setF8('value 8'); $item->setF9('value 9'); $val = $item->getF0(); $val = $item->getF1(); $val = $item->getF2(); $val = $item->getF3(); $val = $item->getF4(); $val = $item->getF5(); $val = $item->getF6(); $val = $item->getF7(); $val = $item->getF8(); $val = $item->getF9(); $items[] = $item; } $spentTime = microtime(true) - $time; echo number_format($spentTime, 3) . ' seconds';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 74
Branch analysis from position: 74
2 jumps found. (Code = 44) Position 1 = 76, Position 2 = 8
Branch analysis from position: 76
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 76, Position 2 = 8
Branch analysis from position: 76
Branch analysis from position: 8
filename:       /in/8h2uf
function name:  (null)
number of ops:  88
compiled vars:  !0 = $count, !1 = $time, !2 = $items, !3 = $i, !4 = $item, !5 = $val, !6 = $spentTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 50000
   49     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $8      
          4        ASSIGN                                                   !1, $8
   50     5        ASSIGN                                                   !2, <array>
   52     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->74
   53     8    >   NEW                                              $12     'ValueObject'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !4, $12
   55    11        INIT_METHOD_CALL                                         !4, 'setF0'
         12        SEND_VAL_EX                                              'value+0'
         13        DO_FCALL                                      0          
   56    14        INIT_METHOD_CALL                                         !4, 'setF1'
         15        SEND_VAL_EX                                              'value+1'
         16        DO_FCALL                                      0          
   57    17        INIT_METHOD_CALL                                         !4, 'setF2'
         18        SEND_VAL_EX                                              'value+2'
         19        DO_FCALL                                      0          
   58    20        INIT_METHOD_CALL                                         !4, 'setF3'
         21        SEND_VAL_EX                                              'value+3'
         22        DO_FCALL                                      0          
   59    23        INIT_METHOD_CALL                                         !4, 'setF4'
         24        SEND_VAL_EX                                              'value+4'
         25        DO_FCALL                                      0          
   60    26        INIT_METHOD_CALL                                         !4, 'setF5'
         27        SEND_VAL_EX                                              'value+5'
         28        DO_FCALL                                      0          
   61    29        INIT_METHOD_CALL                                         !4, 'setF6'
         30        SEND_VAL_EX                                              'value+6'
         31        DO_FCALL                                      0          
   62    32        INIT_METHOD_CALL                                         !4, 'setF7'
         33        SEND_VAL_EX                                              'value+7'
         34        DO_FCALL                                      0          
   63    35        INIT_METHOD_CALL                                         !4, 'setF8'
         36        SEND_VAL_EX                                              'value+8'
         37        DO_FCALL                                      0          
   64    38        INIT_METHOD_CALL                                         !4, 'setF9'
         39        SEND_VAL_EX                                              'value+9'
         40        DO_FCALL                                      0          
   66    41        INIT_METHOD_CALL                                         !4, 'getF0'
         42        DO_FCALL                                      0  $25     
         43        ASSIGN                                                   !5, $25
   67    44        INIT_METHOD_CALL                                         !4, 'getF1'
         45        DO_FCALL                                      0  $27     
         46        ASSIGN                                                   !5, $27
   68    47        INIT_METHOD_CALL                                         !4, 'getF2'
         48        DO_FCALL                                      0  $29     
         49        ASSIGN                                                   !5, $29
   69    50        INIT_METHOD_CALL                                         !4, 'getF3'
         51        DO_FCALL                                      0  $31     
         52        ASSIGN                                                   !5, $31
   70    53        INIT_METHOD_CALL                                         !4, 'getF4'
         54        DO_FCALL                                      0  $33     
         55        ASSIGN                                                   !5, $33
   71    56        INIT_METHOD_CALL                                         !4, 'getF5'
         57        DO_FCALL                                      0  $35     
         58        ASSIGN                                                   !5, $35
   72    59        INIT_METHOD_CALL                                         !4, 'getF6'
         60        DO_FCALL                                      0  $37     
         61        ASSIGN                                                   !5, $37
   73    62        INIT_METHOD_CALL                                         !4, 'getF7'
         63        DO_FCALL                                      0  $39     
         64        ASSIGN                                                   !5, $39
   74    65        INIT_METHOD_CALL                                         !4, 'getF8'
         66        DO_FCALL                                      0  $41     
         67        ASSIGN                                                   !5, $41
   75    68        INIT_METHOD_CALL                                         !4, 'getF9'
         69        DO_FCALL                                      0  $43     
         70        ASSIGN                                                   !5, $43
   77    71        ASSIGN_DIM                                               !2
         72        OP_DATA                                                  !4
   52    73        PRE_INC                                                  !3
         74    >   IS_SMALLER                                               !3, !0
         75      > JMPNZ                                                    ~47, ->8
   80    76    >   INIT_FCALL                                               'microtime'
         77        SEND_VAL                                                 <true>
         78        DO_ICALL                                         $48     
         79        SUB                                              ~49     $48, !1
         80        ASSIGN                                                   !6, ~49
   82    81        INIT_FCALL                                               'number_format'
         82        SEND_VAR                                                 !6
         83        SEND_VAL                                                 3
         84        DO_ICALL                                         $51     
         85        CONCAT                                           ~52     $51, '+seconds'
         86        ECHO                                                     ~52
         87      > RETURN                                                   1

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

End of function getf0

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

End of function setf0

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

End of function getf1

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

End of function setf1

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

End of function getf2

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

End of function setf2

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

End of function getf3

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

End of function setf3

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

End of function getf4

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

End of function setf4

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

End of function getf5

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

End of function setf5

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

End of function getf6

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

End of function setf6

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

End of function getf7

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

End of function setf7

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

End of function getf8

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

End of function setf8

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

End of function getf9

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

End of function setf9

End of class ValueObject.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.27 ms | 1416 KiB | 17 Q