3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(E_WARNING); $a=[]; $a[1]="foo"; $a[(new StdClass())]="bar"; var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AlgFo
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     2
          2        DO_ICALL                                                     
    4     3        ASSIGN                                                       !0, <array>
    5     4        ASSIGN_DIM                                                   !0, 1
          5        OP_DATA                                                      'foo'
    6     6        NEW                                                  $4      'StdClass'
          7        DO_FCALL                                          0          
          8        ASSIGN_DIM                                                   !0, $4
          9        OP_DATA                                                      'bar'
    7    10        INIT_FCALL                                                   'var_dump'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.38 ms | 2096 KiB | 15 Q