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

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