3v4l.org

run code in 300+ PHP versions simultaneously
<?php $autocollant_total_ht_lot10 = null; $autocollant_total_ht_lot11 = ""; $autocollant_total_ht_custom = "1,000"; $euro = "€"; if (isset($autocollant_total_ht_custom)) { echo 'ht custom'; echo $autocollant_total_ht_custom . " " .$euro . "\r\n"; } //notice this doesnt output anything because it isnt set if (isset($autocollant_total_ht_lot10)) { echo 'lot 10'; echo $autocollant_total_ht_lot10. " " .$euro. "\r\n"; } //notice this does because the string, while empty is something that isnt null if (isset($autocollant_total_ht_lot11)) { echo 'lot 11'; echo $autocollant_total_ht_lot11. " " .$euro. "\r\n"; } //lets set it to null and see what happens $autocollant_total_ht_lot11 = null; if (isset($autocollant_total_ht_lot11)) { echo 'lot 11 AGAIN'; echo $autocollant_total_ht_lot11. " " .$euro. "\r\n"; } //it doesnt get printed!
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 33
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 25
Branch analysis from position: 18
Branch analysis from position: 11
filename:       /in/JtnoF
function name:  (null)
number of ops:  34
compiled vars:  !0 = $autocollant_total_ht_lot10, !1 = $autocollant_total_ht_lot11, !2 = $autocollant_total_ht_custom, !3 = $euro
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, '1%2C000'
    5     3        ASSIGN                                                   !3, '%E2%82%AC'
    7     4        ISSET_ISEMPTY_CV                                         !2
          5      > JMPZ                                                     ~8, ->11
    9     6    >   ECHO                                                     'ht+custom'
   10     7        CONCAT                                           ~9      !2, '+'
          8        CONCAT                                           ~10     ~9, !3
          9        CONCAT                                           ~11     ~10, '%0D%0A'
         10        ECHO                                                     ~11
   14    11    >   ISSET_ISEMPTY_CV                                         !0
         12      > JMPZ                                                     ~12, ->18
   16    13    >   ECHO                                                     'lot+10'
   17    14        CONCAT                                           ~13     !0, '+'
         15        CONCAT                                           ~14     ~13, !3
         16        CONCAT                                           ~15     ~14, '%0D%0A'
         17        ECHO                                                     ~15
   21    18    >   ISSET_ISEMPTY_CV                                         !1
         19      > JMPZ                                                     ~16, ->25
   23    20    >   ECHO                                                     'lot+11'
   24    21        CONCAT                                           ~17     !1, '+'
         22        CONCAT                                           ~18     ~17, !3
         23        CONCAT                                           ~19     ~18, '%0D%0A'
         24        ECHO                                                     ~19
   27    25    >   ASSIGN                                                   !1, null
   28    26        ISSET_ISEMPTY_CV                                         !1
         27      > JMPZ                                                     ~21, ->33
   30    28    >   ECHO                                                     'lot+11+AGAIN'
   31    29        CONCAT                                           ~22     !1, '+'
         30        CONCAT                                           ~23     ~22, !3
         31        CONCAT                                           ~24     ~23, '%0D%0A'
         32        ECHO                                                     ~24
   33    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.36 ms | 1399 KiB | 13 Q