3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = NULL; empty($x['foo']->bar->k[$x->z]); print "OK\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9FUdV
function name:  (null)
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        FETCH_OBJ_R                                      ~5      !0, 'z'
          2        FETCH_DIM_IS                                     ~2      !0, 'foo'
          3        FETCH_OBJ_IS                                     ~3      ~2, 'bar'
          4        FETCH_OBJ_IS                                     ~4      ~3, 'k'
          5        ISSET_ISEMPTY_DIM_OBJ                         1  ~6      ~4, ~5
          6        FREE                                                     ~6
    5     7        ECHO                                                     'OK%0A'
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.91 ms | 1392 KiB | 13 Q