3v4l.org

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

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

End of function __construct

End of class Clazz.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.77 ms | 1394 KiB | 13 Q