3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Compare two numeric strings (same semantic 1): (NAN == 0) = " . (NAN == 0 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same semantic 2): (NAN > 1 ) = " . (NAN > 0 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same semantic 3): (NAN < 1) = " . (NAN < 0 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same semantic 4): (NAN == -1) = " . (NAN == -1 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same semantic 5): (NAN > -1) = " . (NAN > -1 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same semantic 6): (NAN > -1) = " . (NAN > -1 ? 'true' : 'false') . "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 3
Branch analysis from position: 1
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
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
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
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 = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
Branch analysis from position: 38
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
Branch analysis from position: 31
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
Branch analysis from position: 24
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
Branch analysis from position: 17
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
Branch analysis from position: 10
filename:       /in/kSm53
function name:  (null)
number of ops:  43
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > JMPZ                                                     <false>, ->3
          1    >   QM_ASSIGN                                        ~0      'true'
          2      > JMP                                                      ->4
          3    >   QM_ASSIGN                                        ~0      'false'
          4    >   CONCAT                                           ~1      'Compare+two+numeric+strings+%28same+semantic+1%29%3A+%28NAN+%3D%3D+0%29++++++++++++++++%3D+', ~0
          5        CONCAT                                           ~2      ~1, '%0A'
          6        ECHO                                                     ~2
    3     7      > JMPZ                                                     <false>, ->10
          8    >   QM_ASSIGN                                        ~3      'true'
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~3      'false'
         11    >   CONCAT                                           ~4      'Compare+two+numeric+strings+%28same+semantic+2%29%3A+%28NAN+%3E+1+%29++++++++++++++++%3D+', ~3
         12        CONCAT                                           ~5      ~4, '%0A'
         13        ECHO                                                     ~5
    4    14      > JMPZ                                                     <false>, ->17
         15    >   QM_ASSIGN                                        ~6      'true'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~6      'false'
         18    >   CONCAT                                           ~7      'Compare+two+numeric+strings+%28same+semantic+3%29%3A+%28NAN+%3C+1%29+++++++++++++++++%3D+', ~6
         19        CONCAT                                           ~8      ~7, '%0A'
         20        ECHO                                                     ~8
    5    21      > JMPZ                                                     <false>, ->24
         22    >   QM_ASSIGN                                        ~9      'true'
         23      > JMP                                                      ->25
         24    >   QM_ASSIGN                                        ~9      'false'
         25    >   CONCAT                                           ~10     'Compare+two+numeric+strings+%28same+semantic+4%29%3A+%28NAN+%3D%3D+-1%29+++++++++++++++%3D+', ~9
         26        CONCAT                                           ~11     ~10, '%0A'
         27        ECHO                                                     ~11
    6    28      > JMPZ                                                     <false>, ->31
         29    >   QM_ASSIGN                                        ~12     'true'
         30      > JMP                                                      ->32
         31    >   QM_ASSIGN                                        ~12     'false'
         32    >   CONCAT                                           ~13     'Compare+two+numeric+strings+%28same+semantic+5%29%3A+%28NAN+%3E+-1%29++++++++++++++++%3D+', ~12
         33        CONCAT                                           ~14     ~13, '%0A'
         34        ECHO                                                     ~14
    7    35      > JMPZ                                                     <false>, ->38
         36    >   QM_ASSIGN                                        ~15     'true'
         37      > JMP                                                      ->39
         38    >   QM_ASSIGN                                        ~15     'false'
         39    >   CONCAT                                           ~16     'Compare+two+numeric+strings+%28same+semantic+6%29%3A+%28NAN+%3E+-1%29++++++++++++++++%3D+', ~15
         40        CONCAT                                           ~17     ~16, '%0A'
         41        ECHO                                                     ~17
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.01 ms | 1403 KiB | 13 Q