3v4l.org

run code in 300+ PHP versions simultaneously
<?php $discoveredAt; if (isset($discoveredAt)) { echo "Set as Null" . PHP_EOL; } else { echo "Not set: NULL" . PHP_EOL; } $discoveredAt = ""; if (empty($discoveredAt)) { echo "Set as empty string" . PHP_EOL; } else { echo "Not set: empty string" . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
Branch analysis from position: 10
filename:       /in/t6n6p
function name:  (null)
number of ops:  12
compiled vars:  !0 = $discoveredAt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ISSET_ISEMPTY_CV                                         !0
          1      > JMPZ                                                     ~1, ->4
    6     2    >   ECHO                                                     'Set+as+Null%0A'
          3      > JMP                                                      ->5
    8     4    >   ECHO                                                     'Not+set%3A+NULL%0A'
   11     5    >   ASSIGN                                                   !0, ''
   13     6        ISSET_ISEMPTY_CV                                         !0
          7      > JMPZ                                                     ~3, ->10
   14     8    >   ECHO                                                     'Set+as+empty+string%0A'
          9      > JMP                                                      ->11
   16    10    >   ECHO                                                     'Not+set%3A+empty+string%0A'
   17    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194 ms | 1393 KiB | 13 Q