3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ($i = 0; $i < 3; $i++) { $x = new stdClass; $x->amount = 14.99; $a[] = $x; } $a[0]->amount -= 10; var_dump($a);
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/BtbKr
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $i, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->11
    5     3    >   NEW                                              $5      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $5
    6     6        ASSIGN_OBJ                                               !2, 'amount'
          7        OP_DATA                                                  14.99
    7     8        ASSIGN_DIM                                               !0
          9        OP_DATA                                                  !2
    4    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 3
         12      > JMPNZ                                                    ~11, ->3
   10    13    >   FETCH_DIM_RW                                     $12     !0, 0
         14        ASSIGN_OBJ_OP                                 2          $12, 'amount'
         15        OP_DATA                                                  10
   12    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.07 ms | 1395 KiB | 15 Q