3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 20000; 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++) { $items[] = new ValueObject(); } $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 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/75dAj
function name:  (null)
number of ops:  27
compiled vars:  !0 = $count, !1 = $time, !2 = $items, !3 = $i, !4 = $spentTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 20000
   49     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
   50     5        ASSIGN                                                   !2, <array>
   52     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->13
   53     8    >   NEW                                              $11     'ValueObject'
          9        DO_FCALL                                      0          
         10        ASSIGN_DIM                                               !2
         11        OP_DATA                                                  $11
   52    12        PRE_INC                                                  !3
         13    >   IS_SMALLER                                               !3, !0
         14      > JMPNZ                                                    ~14, ->8
   56    15    >   INIT_FCALL                                               'microtime'
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $15     
         18        SUB                                              ~16     $15, !1
         19        ASSIGN                                                   !4, ~16
   58    20        INIT_FCALL                                               'number_format'
         21        SEND_VAR                                                 !4
         22        SEND_VAL                                                 3
         23        DO_ICALL                                         $18     
         24        CONCAT                                           ~19     $18, '+seconds'
         25        ECHO                                                     ~19
         26      > RETURN                                                   1

Class ValueObject:
Function getf0:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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/75dAj
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:
138.7 ms | 1404 KiB | 17 Q