3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = array(); class MyArrayObject{ public $name, $age; public function __construct( $name, $age ) { $this->name = $name; $this->age = $age; } } for( $x=0;$x<1000;$x++){ $o = new MyArrayObject( 'Adam', 35 ); $s[] = $o; }
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/DQ5jG
function name:  (null)
number of ops:  14
compiled vars:  !0 = $s, !1 = $x, !2 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->11
   13     3    >   NEW                                              $5      'MyArrayObject'
          4        SEND_VAL_EX                                              'Adam'
          5        SEND_VAL_EX                                              35
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !2, $5
   14     8        ASSIGN_DIM                                               !0
          9        OP_DATA                                                  !2
   12    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 1000
         12      > JMPNZ                                                    ~10, ->3
   15    13    > > RETURN                                                   1

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

End of function __construct

End of class MyArrayObject.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.26 ms | 1385 KiB | 13 Q