3v4l.org

run code in 300+ PHP versions simultaneously
<?php // given: $undef = 'a'; unset($undef); $null = NULL; $false = FALSE; $true = TRUE; // these operations: var_dump(isset($undef)); var_dump(empty($undef)); var_dump(array_key_exists('undef', $GLOBALS)); // "defined" below
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j1lOE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $undef, !1 = $null, !2 = $false, !3 = $true
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a'
    4     1        UNSET_CV                                                 !0
    5     2        ASSIGN                                                   !1, null
    6     3        ASSIGN                                                   !2, <false>
    7     4        ASSIGN                                                   !3, <true>
   11     5        INIT_FCALL                                               'var_dump'
          6        ISSET_ISEMPTY_CV                                 ~8      !0
          7        SEND_VAL                                                 ~8
          8        DO_ICALL                                                 
   12     9        INIT_FCALL                                               'var_dump'
         10        ISSET_ISEMPTY_CV                                 ~10     !0
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                                 
   13    13        INIT_FCALL                                               'var_dump'
         14        FETCH_R                      global              ~12     'GLOBALS'
         15        ARRAY_KEY_EXISTS                                 ~13     'undef', ~12
         16        SEND_VAL                                                 ~13
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.89 ms | 1394 KiB | 15 Q