3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterations = 100000; $container = new ArrayObject(array()); class A { protected $number; public function __construct() { $this->number = mt_rand(1, 10000); } } for ($i = 0; $i <= $iterations; ++$i) { $someVariable = new A; $container[] = $someVariable; }
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 = 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/bM3ri
function name:  (null)
number of ops:  16
compiled vars:  !0 = $iterations, !1 = $container, !2 = $i, !3 = $someVariable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 100000
    3     1        NEW                                              $5      'ArrayObject'
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
   14     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->13
   15     7    >   NEW                                              $9      'A'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !3, $9
   16    10        ASSIGN_DIM                                               !1
         11        OP_DATA                                                  !3
   14    12        PRE_INC                                                  !2
         13    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         14      > JMPNZ                                                    ~14, ->7
   17    15    > > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bM3ri
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'mt_rand'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 10000
          3        DO_ICALL                                         $1      
          4        ASSIGN_OBJ                                               'number'
          5        OP_DATA                                                  $1
   11     6      > RETURN                                                   null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.26 ms | 1396 KiB | 15 Q