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/Knv75
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'apple'
    3     1        ASSIGN                                                   !0, null
    5     2        ISSET_ISEMPTY_CV                                 ~4      !0
          3        CAST                                          4  ~5      ~4
          4        ECHO                                                     ~5
    6     5        ISSET_ISEMPTY_CV                                 ~6      !1
          6        CAST                                          4  ~7      ~6
          7        ECHO                                                     ~7
    7     8        UNSET_CV                                                 !0
    8     9        ISSET_ISEMPTY_CV                                 ~8      !0
         10        CAST                                          4  ~9      ~8
         11        ECHO                                                     ~9
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.04 ms | 1393 KiB | 13 Q