3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.63 ms | 1394 KiB | 15 Q