3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr[] = 'or'; echo $arr[0]; $arr[] = 'aviv'; echo $arr[0]; unset($arr); $arr = array(); $arr[] = 'not or'; echo $arr[0];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r6F3U
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  'or'
    5     3        FETCH_DIM_R                                      ~3      !0, 0
          4        ECHO                                                     ~3
    6     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  'aviv'
    7     7        FETCH_DIM_R                                      ~5      !0, 0
          8        ECHO                                                     ~5
    8     9        UNSET_CV                                                 !0
    9    10        ASSIGN                                                   !0, <array>
   10    11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  'not+or'
   12    13        FETCH_DIM_R                                      ~8      !0, 0
         14        ECHO                                                     ~8
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.51 ms | 1393 KiB | 13 Q