3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = (int) INF; $n = pow(2.,64.); echo $a - ($n * (int) ($a/$n) ),"\n"; // INF but s/b NAN echo fmod(INF,pow(2,64)),"\n"; // NAN correct!
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iUic1
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          4  ~2      INF
          1        ASSIGN                                                   !0, ~2
    3     2        INIT_FCALL                                               'pow'
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 64
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7        DIV                                              ~6      !0, !1
          8        CAST                                          4  ~7      ~6
          9        MUL                                              ~8      !1, ~7
         10        SUB                                              ~9      !0, ~8
         11        ECHO                                                     ~9
         12        ECHO                                                     '%0A'
    8    13        INIT_FCALL                                               'fmod'
         14        SEND_VAL                                                 INF
         15        INIT_FCALL                                               'pow'
         16        SEND_VAL                                                 2
         17        SEND_VAL                                                 64
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                         $11     
         21        ECHO                                                     $11
         22        ECHO                                                     '%0A'
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.48 ms | 1386 KiB | 17 Q