3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (NaN == true); echo (NaN === true); echo (NaN == false); echo (NaN == NaN); echo (NaN === NaN);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7RjEp
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~0      'NaN'
          1        BOOL                                             ~1      ~0
          2        ECHO                                                     ~1
    3     3        FETCH_CONSTANT                                   ~2      'NaN'
          4        TYPE_CHECK                                    8  ~3      ~2
          5        ECHO                                                     ~3
    4     6        FETCH_CONSTANT                                   ~4      'NaN'
          7        BOOL_NOT                                         ~5      ~4
          8        ECHO                                                     ~5
    5     9        FETCH_CONSTANT                                   ~6      'NaN'
         10        FETCH_CONSTANT                                   ~7      'NaN'
         11        IS_EQUAL                                         ~8      ~6, ~7
         12        ECHO                                                     ~8
    6    13        FETCH_CONSTANT                                   ~9      'NaN'
         14        FETCH_CONSTANT                                   ~10     'NaN'
         15        IS_IDENTICAL                                     ~11     ~9, ~10
         16        ECHO                                                     ~11
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.47 ms | 1393 KiB | 13 Q