3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{ public $i = array(); function plus($t) { $this->i[]=$t; } } $test = array(); for($i =0 ;$i<10000;++$i) { $t = new test; $t->plus($i); $test[] = $t; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/DfS2k
function name:  (null)
number of ops:  15
compiled vars:  !0 = $test, !1 = $i, !2 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->12
   10     3    >   NEW                                              $5      'test'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $5
   11     6        INIT_METHOD_CALL                                         !2, 'plus'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
   12     9        ASSIGN_DIM                                               !0
         10        OP_DATA                                                  !2
    9    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 10000
         13      > JMPNZ                                                    ~11, ->3
   13    14    > > RETURN                                                   1

Class test:
Function plus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DfS2k
function name:  plus
number of ops:  5
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        FETCH_OBJ_W                                      $1      'i'
          2        ASSIGN_DIM                                               $1
          3        OP_DATA                                                  !0
    6     4      > RETURN                                                   null

End of function plus

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.31 ms | 1394 KiB | 13 Q