3v4l.org

run code in 300+ PHP versions simultaneously
<?php // given: unset($undef); $null = NULL; $false = FALSE; $true = TRUE; // these operations: isset($var); empty($var); 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/chLss
function name:  (null)
number of ops:  12
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        ISSET_ISEMPTY_CV                                 ~8      !4
          5        FREE                                                     ~8
   10     6        ISSET_ISEMPTY_CV                                 ~9      !4
          7        FREE                                                     ~9
   11     8        FETCH_R                      global              ~10     'GLOBALS'
          9        ARRAY_KEY_EXISTS                                 ~11     'var', ~10
         10        FREE                                                     ~11
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.49 ms | 1393 KiB | 13 Q