3v4l.org

run code in 300+ PHP versions simultaneously
<?php $autocollant_total_ht_lot10 = null; $autocollant_total_ht_custom = "1,000"; //if you switch the variable assignment above you will see it behaves as expected. $euro = "€"; if (isset($autocollant_total_ht_custom)) { echo $autocollant_total_ht_custom . " " .$euro; } //notice this doesnt output anything because it isnt set if (isset($autocollant_total_ht_lot10)) { echo $autocollant_total_ht_lot10. " " .$euro; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 8
filename:       /in/r5pKt
function name:  (null)
number of ops:  14
compiled vars:  !0 = $autocollant_total_ht_lot10, !1 = $autocollant_total_ht_custom, !2 = $euro
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    3     1        ASSIGN                                                   !1, '1%2C000'
    5     2        ASSIGN                                                   !2, '%E2%82%AC'
    7     3        ISSET_ISEMPTY_CV                                         !1
          4      > JMPZ                                                     ~6, ->8
    9     5    >   CONCAT                                           ~7      !1, '+'
          6        CONCAT                                           ~8      ~7, !2
          7        ECHO                                                     ~8
   13     8    >   ISSET_ISEMPTY_CV                                         !0
          9      > JMPZ                                                     ~9, ->13
   15    10    >   CONCAT                                           ~10     !0, '+'
         11        CONCAT                                           ~11     ~10, !2
         12        ECHO                                                     ~11
   16    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.63 ms | 1397 KiB | 13 Q