3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Klass { public $a; public function __construct() { foreach (range(0, 10000000) as $e) { $this->a[$e] = new stdClass(); } } } $array = array_fill(0, 10000, new Klass()); array_unshift($array, 999);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CDaHh
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'array_fill'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 10000
          3        NEW                                              $1      'Klass'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
   13     8        INIT_FCALL                                               'array_unshift'
          9        SEND_REF                                                 !0
         10        SEND_VAL                                                 999
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class Klass:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/CDaHh
function name:  __construct
number of ops:  14
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 10000000
          3        DO_ICALL                                         $1      
          4      > FE_RESET_R                                       $2      $1, ->12
          5    > > FE_FETCH_R                                               $2, !0, ->12
    7     6    >   NEW                                              $5      'stdClass'
          7        DO_FCALL                                      0          
          8        FETCH_OBJ_W                                      $3      'a'
          9        ASSIGN_DIM                                               $3, !0
         10        OP_DATA                                                  $5
    6    11      > JMP                                                      ->5
         12    >   FE_FREE                                                  $2
    9    13      > RETURN                                                   null

End of function __construct

End of class Klass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.68 ms | 1396 KiB | 19 Q