3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '---' . PHP_EOL; ($pricing ?? '') === 'price' and print 'selected="true"'; echo '---' . PHP_EOL; $pricing = []; ($pricing ?? '') === 'price' and print 'selected="true"'; echo '---' . PHP_EOL; $pricing = 'price'; ($pricing ?? '') === 'price' and print 'selected="true"';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/T4chq
function name:  (null)
number of ops:  24
compiled vars:  !0 = $pricing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '---%0A'
    4     1        COALESCE                                         ~1      !0
          2        QM_ASSIGN                                        ~1      ''
          3        IS_IDENTICAL                                     ~2      ~1, 'price'
          4      > JMPZ_EX                                          ~2      ~2, ->7
          5    >   ECHO                                                     'selected%3D%22true%22'
          6        BOOL                                             ~2      1
    6     7    >   ECHO                                                     '---%0A'
    7     8        ASSIGN                                                   !0, <array>
    8     9        COALESCE                                         ~4      !0
         10        QM_ASSIGN                                        ~4      ''
         11        IS_IDENTICAL                                     ~5      ~4, 'price'
         12      > JMPZ_EX                                          ~5      ~5, ->15
         13    >   ECHO                                                     'selected%3D%22true%22'
         14        BOOL                                             ~5      1
   10    15    >   ECHO                                                     '---%0A'
   11    16        ASSIGN                                                   !0, 'price'
   12    17        COALESCE                                         ~7      !0
         18        QM_ASSIGN                                        ~7      ''
         19        IS_IDENTICAL                                     ~8      ~7, 'price'
         20      > JMPZ_EX                                          ~8      ~8, ->23
         21    >   ECHO                                                     'selected%3D%22true%22'
         22        BOOL                                             ~8      1
         23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.96 ms | 1002 KiB | 13 Q