3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = apple; $a = null; //$b never set echo (int) isset($a); echo (int) isset($b); unset($a); echo (int) isset($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FZm7s
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~2      'apple'
          1        ASSIGN                                                   !0, ~2
    3     2        ASSIGN                                                   !0, null
    5     3        ISSET_ISEMPTY_CV                                 ~5      !0
          4        CAST                                          4  ~6      ~5
          5        ECHO                                                     ~6
    6     6        ISSET_ISEMPTY_CV                                 ~7      !1
          7        CAST                                          4  ~8      ~7
          8        ECHO                                                     ~8
    7     9        UNSET_CV                                                 !0
    8    10        ISSET_ISEMPTY_CV                                 ~9      !0
         11        CAST                                          4  ~10     ~9
         12        ECHO                                                     ~10
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.6 ms | 1397 KiB | 13 Q