3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { var $test = 'test'; } $test = array(1); var_dump(spl_object_hash($test)); foreach ($test as $t) { $test[0] = 2; //$t->test = 'nope'; } var_dump(spl_object_hash($test));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/TbORj
function name:  (null)
number of ops:  20
compiled vars:  !0 = $test, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'spl_object_hash'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                                 
   10     7      > FE_RESET_R                                       $5      !0, ->12
          8    > > FE_FETCH_R                                               $5, !1, ->12
   11     9    >   ASSIGN_DIM                                               !0, 0
         10        OP_DATA                                                  2
   10    11      > JMP                                                      ->8
         12    >   FE_FREE                                                  $5
   15    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'spl_object_hash'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.07 ms | 1399 KiB | 17 Q