3v4l.org

run code in 300+ PHP versions simultaneously
<?php class teste { public $nome; public $data; } $teste = new teste(); $teste->nome = 'Kennedy Tedesco'; $teste->data = '13-11-1990'; $array[] = $teste; $array[] = $teste; $novoArray = []; foreach($array as $item) { $item->nome = 'Pedro Gabriel'; $item->data = '12-12-1222'; $novoArray[] = $item; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/RVjeC
function name:  (null)
number of ops:  23
compiled vars:  !0 = $teste, !1 = $array, !2 = $novoArray, !3 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $4      'teste'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    9     3        ASSIGN_OBJ                                               !0, 'nome'
          4        OP_DATA                                                  'Kennedy+Tedesco'
   10     5        ASSIGN_OBJ                                               !0, 'data'
          6        OP_DATA                                                  '13-11-1990'
   12     7        ASSIGN_DIM                                               !1
          8        OP_DATA                                                  !0
   13     9        ASSIGN_DIM                                               !1
         10        OP_DATA                                                  !0
   15    11        ASSIGN                                                   !2, <array>
   17    12      > FE_RESET_R                                       $12     !1, ->21
         13    > > FE_FETCH_R                                               $12, !3, ->21
   19    14    >   ASSIGN_OBJ                                               !3, 'nome'
         15        OP_DATA                                                  'Pedro+Gabriel'
   20    16        ASSIGN_OBJ                                               !3, 'data'
         17        OP_DATA                                                  '12-12-1222'
   21    18        ASSIGN_DIM                                               !2
         19        OP_DATA                                                  !3
   17    20      > JMP                                                      ->13
         21    >   FE_FREE                                                  $12
   22    22      > RETURN                                                   1

Class teste: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.76 ms | 1394 KiB | 13 Q