3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const FOO = [ 'bar' => true, 'lol' => false, ]; } var_dump( empty(A::FOO['bar']), empty(A::FOO['lol']), empty(A::FOO['wtf']) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XObVP
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
   11     1        ISSET_ISEMPTY_DIM_OBJ                         1  ~0      <array>, 'bar'
          2        SEND_VAL                                                 ~0
   12     3        ISSET_ISEMPTY_DIM_OBJ                         1  ~1      <array>, 'lol'
          4        SEND_VAL                                                 ~1
   13     5        ISSET_ISEMPTY_DIM_OBJ                         1  ~2      <array>, 'wtf'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   14     8      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.72 ms | 1385 KiB | 15 Q