3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = array(); for ($i=0; $i<20000; $i++) { $x = new stdClass(); $x->fish = 'fish'; $x->pie = $x->fish; $y[] = $x; } echo 'done';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
filename:       /in/QnMRY
function name:  (null)
number of ops:  18
compiled vars:  !0 = $y, !1 = $i, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->14
    4     3    >   NEW                                              $5      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $5
    5     6        ASSIGN_OBJ                                               !2, 'fish'
          7        OP_DATA                                                  'fish'
    6     8        FETCH_OBJ_R                                      ~10     !2, 'fish'
          9        ASSIGN_OBJ                                               !2, 'pie'
         10        OP_DATA                                                  ~10
    7    11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  !2
    3    13        PRE_INC                                                  !1
         14    >   IS_SMALLER                                               !1, 20000
         15      > JMPNZ                                                    ~13, ->3
   10    16    >   ECHO                                                     'done'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.6 ms | 1398 KiB | 13 Q