3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $arr = []; $f = new Foo; $arr[$f] = 1; var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KLh6q
function name:  (null)
number of ops:  10
compiled vars:  !0 = $arr, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        NEW                                              $3      'Foo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    7     4        ASSIGN_DIM                                               !0, !1
          5        OP_DATA                                                  1
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.47 ms | 1394 KiB | 15 Q