3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.17 ms | 1394 KiB | 15 Q