3v4l.org

run code in 300+ PHP versions simultaneously
<?php $things = [NAN, is_nan(NAN), is_float(NAN), is_int(NAN), var_dump(NAN)]; $len = count($things); for ($i = 0; $i < $len; $i++) { print_r($things[$i]); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 18
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 18
Branch analysis from position: 25
Branch analysis from position: 18
filename:       /in/Ua781
function name:  (null)
number of ops:  26
compiled vars:  !0 = $things, !1 = $len, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                       ~3      NAN
          1        INIT_FCALL                                               'is_nan'
          2        SEND_VAL                                                 NAN
          3        DO_ICALL                                         $4      
          4        ADD_ARRAY_ELEMENT                                ~3      $4
          5        TYPE_CHECK                                   32  ~5      NAN
          6        ADD_ARRAY_ELEMENT                                ~3      ~5
          7        TYPE_CHECK                                   16  ~6      NAN
          8        ADD_ARRAY_ELEMENT                                ~3      ~6
          9        INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 NAN
         11        DO_ICALL                                         $7      
         12        ADD_ARRAY_ELEMENT                                ~3      $7
         13        ASSIGN                                                   !0, ~3
    4    14        COUNT                                            ~9      !0
         15        ASSIGN                                                   !1, ~9
    5    16        ASSIGN                                                   !2, 0
         17      > JMP                                                      ->23
    6    18    >   INIT_FCALL                                               'print_r'
         19        FETCH_DIM_R                                      ~12     !0, !2
         20        SEND_VAL                                                 ~12
         21        DO_ICALL                                                 
    5    22        PRE_INC                                                  !2
         23    >   IS_SMALLER                                               !2, !1
         24      > JMPNZ                                                    ~15, ->18
    7    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.1 ms | 1395 KiB | 19 Q