3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { protected $x = array(); public function __construct() { $this->x = range(1,10000); } } $a = array(); for ($i = 0; $i < 2000; $i++) { $a []= new A(); }
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 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/La7AC
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   8     1        ASSIGN                                                   !0, <array>
   9     2        ASSIGN                                                   !1, 0
         3      > JMP                                                      ->10
  10     4    >   NEW                                              $6      :-3
         5        DO_FCALL                                      0          
         6        ASSIGN_DIM                                               !0
         7        OP_DATA                                                  $6
   9     8        POST_INC                                         ~8      !1
         9        FREE                                                     ~8
        10    >   IS_SMALLER                                       ~9      !1, 2000
        11      > JMPNZ                                                    ~9, ->4
  11    12    > > RETURN                                                   1

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

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 7.3.0