3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $field; } $test1 = new Test; print spl_object_hash($test1) . PHP_EOL; $test1->field =' Some value'; print spl_object_hash($test1) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QsOl6
function name:  (null)
number of ops:  16
compiled vars:  !0 = $test1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        INIT_FCALL                                               'spl_object_hash'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        CONCAT                                           ~5      $4, '%0A'
          7        ECHO                                                     ~5
   12     8        ASSIGN_OBJ                                               !0, 'field'
          9        OP_DATA                                                  '+Some+value'
   13    10        INIT_FCALL                                               'spl_object_hash'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $7      
         13        CONCAT                                           ~8      $7, '%0A'
         14        ECHO                                                     ~8
         15      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.25 ms | 1394 KiB | 15 Q