3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(NAN, NAN < NAN, NAN > NAN, NAN > 0.0, NAN < 0.0, NAN == NAN /* the only comparison that seems correct */); echo "\n----\n\n"; var_dump(INF, INF < INF, INF > INF, INF == INF);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MP38b
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 NAN
          2        SEND_VAL                                                 <false>
          3        SEND_VAL                                                 <false>
          4        SEND_VAL                                                 <false>
          5        SEND_VAL                                                 <false>
    4     6        SEND_VAL                                                 <false>
          7        DO_ICALL                                                 
    5     8        ECHO                                                     '%0A----%0A%0A'
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 INF
         11        SEND_VAL                                                 <false>
         12        SEND_VAL                                                 <false>
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.68 ms | 1398 KiB | 15 Q