3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("a","b","c"); echo "this is " . $array[3] . "\n"; echo empty($array[3]). "\n"; echo empty($array[2]). "\n"; echo $_SERVER['REQUEST_URI'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JldGH
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_R                                      ~2      !0, 3
          2        CONCAT                                           ~3      'this+is+', ~2
          3        CONCAT                                           ~4      ~3, '%0A'
          4        ECHO                                                     ~4
    4     5        ISSET_ISEMPTY_DIM_OBJ                         1  ~5      !0, 3
          6        CONCAT                                           ~6      ~5, '%0A'
          7        ECHO                                                     ~6
    5     8        ISSET_ISEMPTY_DIM_OBJ                         1  ~7      !0, 2
          9        CONCAT                                           ~8      ~7, '%0A'
         10        ECHO                                                     ~8
    6    11        FETCH_R                      global              ~9      '_SERVER'
         12        FETCH_DIM_R                                      ~10     ~9, 'REQUEST_URI'
         13        ECHO                                                     ~10
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
212.2 ms | 1397 KiB | 13 Q