3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( new stdClass(), new stdClass(), new stdClass(), ); var_dump($a); $i = 0; foreach ($a as $o) { $o->foo = 'bar' . $i++; } var_dump($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/UE5FF
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $i, !2 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~5      $3
    4     3        NEW                                              $6      'stdClass'
          4        DO_FCALL                                      0          
          5        ADD_ARRAY_ELEMENT                                ~5      $6
    5     6        NEW                                              $8      'stdClass'
          7        DO_FCALL                                      0          
          8        ADD_ARRAY_ELEMENT                                ~5      $8
    2     9        ASSIGN                                                   !0, ~5
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    8    13        ASSIGN                                                   !1, 0
    9    14      > FE_RESET_R                                       $13     !0, ->21
         15    > > FE_FETCH_R                                               $13, !2, ->21
   10    16    >   POST_INC                                         ~15     !1
         17        CONCAT                                           ~16     'bar', ~15
         18        ASSIGN_OBJ                                               !2, 'foo'
         19        OP_DATA                                                  ~16
    9    20      > JMP                                                      ->15
         21    >   FE_FREE                                                  $13
   12    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.49 ms | 1395 KiB | 15 Q