3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataValue = 'c'; $inputValue = 'b'; echo (string) $dataValue > (string) $inputValue && !empty($inputValue) ? 'TRUE' : 'FALSE'; echo ((string) $dataValue > (string) $inputValue) && !empty($inputValue) ? 'TRUE' : 'FALSE'; echo (string) $dataValue > ((string) $inputValue && !empty($inputValue)) ? 'TRUE' : 'FALSE';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 29, Position 2 = 32
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 24
2 jumps found. (Code = 46) Position 1 = 29, Position 2 = 32
Branch analysis from position: 29
Branch analysis from position: 32
Branch analysis from position: 21
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
Branch analysis from position: 21
Branch analysis from position: 9
filename:       /in/BeMEm
function name:  (null)
number of ops:  39
compiled vars:  !0 = $dataValue, !1 = $inputValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'c'
    3     1        ASSIGN                                                   !1, 'b'
    5     2        CAST                                          6  ~4      !0
          3        CAST                                          6  ~5      !1
          4        IS_SMALLER                                       ~6      ~5, ~4
          5      > JMPZ_EX                                          ~6      ~6, ->9
          6    >   ISSET_ISEMPTY_CV                                 ~7      !1
          7        BOOL_NOT                                         ~8      ~7
          8        BOOL                                             ~6      ~8
          9    > > JMPZ                                                     ~6, ->12
         10    >   QM_ASSIGN                                        ~9      'TRUE'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~9      'FALSE'
         13    >   ECHO                                                     ~9
    6    14        CAST                                          6  ~10     !0
         15        CAST                                          6  ~11     !1
         16        IS_SMALLER                                       ~12     ~11, ~10
         17      > JMPZ_EX                                          ~12     ~12, ->21
         18    >   ISSET_ISEMPTY_CV                                 ~13     !1
         19        BOOL_NOT                                         ~14     ~13
         20        BOOL                                             ~12     ~14
         21    > > JMPZ                                                     ~12, ->24
         22    >   QM_ASSIGN                                        ~15     'TRUE'
         23      > JMP                                                      ->25
         24    >   QM_ASSIGN                                        ~15     'FALSE'
         25    >   ECHO                                                     ~15
    7    26        CAST                                          6  ~16     !0
         27        CAST                                          6  ~17     !1
         28      > JMPZ_EX                                          ~17     ~17, ->32
         29    >   ISSET_ISEMPTY_CV                                 ~18     !1
         30        BOOL_NOT                                         ~19     ~18
         31        BOOL                                             ~17     ~19
         32    >   IS_SMALLER                                               ~17, ~16
         33      > JMPZ                                                     ~20, ->36
         34    >   QM_ASSIGN                                        ~21     'TRUE'
         35      > JMP                                                      ->37
         36    >   QM_ASSIGN                                        ~21     'FALSE'
         37    >   ECHO                                                     ~21
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.05 ms | 1012 KiB | 13 Q