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 < 10000; $i++) { $containers['a' . $i] = 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 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/1YonD
function name:  (null)
number of ops:  20
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                                                      ->13
   28     3    >   CONCAT                                           ~5      'a', !1
          4        NEW                                              $7      'Container'
          5        CONCAT                                           ~8      'a', !1
          6        SEND_VAL_EX                                              ~8
          7        CONCAT                                           ~9      'b', !1
          8        SEND_VAL_EX                                              ~9
          9        DO_FCALL                                      0          
         10        ASSIGN_DIM                                               !0, ~5
         11        OP_DATA                                                  $7
   27    12        PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, 10000
         14      > JMPNZ                                                    ~12, ->3
   31    15    >   NEW                                              $13     'Clazz'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !2, $13
         19      > RETURN                                                   1

Class Container:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1YonD
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/1YonD
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:
158.9 ms | 1390 KiB | 13 Q