3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tx = ["ans1","ans2","ans3"]; for ($i=0, $max=3; $i < $max; $i++) { $o[] = new stdClass; $o[$i]->text = $tx[$i]; } print_r( $o );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
Branch analysis from position: 4
filename:       /in/D4ZSo
function name:  (null)
number of ops:  19
compiled vars:  !0 = $tx, !1 = $i, !2 = $max, !3 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 0
          2        ASSIGN                                                   !2, 3
          3      > JMP                                                      ->13
    6     4    >   NEW                                              $8      'stdClass'
          5        DO_FCALL                                      0          
          6        ASSIGN_DIM                                               !3
          7        OP_DATA                                                  $8
    7     8        FETCH_DIM_R                                      ~12     !0, !1
          9        FETCH_DIM_W                                      $10     !3, !1
         10        ASSIGN_OBJ                                               $10, 'text'
         11        OP_DATA                                                  ~12
    5    12        PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, !2
         14      > JMPNZ                                                    ~14, ->4
   11    15    >   INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.31 ms | 1399 KiB | 15 Q