3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Container { private $a; private $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } } class Clazz { private $containers; public function __construct(array $containers) { $this->containers = $containers; } } $containers = array(); for ($i = 0; $i < 100000; $i++) { $containers[] = new Container('a' . $i, 'b' . $i); } $clazz = new Clazz($containers);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/8AHAg
function name:  (null)
number of ops:  19
compiled vars:  !0 = $containers, !1 = $i, !2 = $clazz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   ASSIGN                                                   !0, <array>
   27     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->12
   28     3    >   NEW                                              $6      'Container'
          4        CONCAT                                           ~7      'a', !1
          5        SEND_VAL_EX                                              ~7
          6        CONCAT                                           ~8      'b', !1
          7        SEND_VAL_EX                                              ~8
          8        DO_FCALL                                      0          
          9        ASSIGN_DIM                                               !0
         10        OP_DATA                                                  $6
   27    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 100000
         13      > JMPNZ                                                    ~11, ->3
   31    14    >   NEW                                              $12     'Clazz'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !2, $12
         18      > RETURN                                                   1

Class Container:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8AHAg
function name:  __construct
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        ASSIGN_OBJ                                               'a'
          3        OP_DATA                                                  !0
   11     4        ASSIGN_OBJ                                               'b'
          5        OP_DATA                                                  !1
   12     6      > RETURN                                                   null

End of function __construct

End of class Container.

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

End of function __construct

End of class Clazz.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.37 ms | 1399 KiB | 13 Q