3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [NAN]; var_dump(in_array(NAN, $a)); var_dump(empty($a)); var_dump(in_array($a[0], $a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8C2Jl
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'in_array'
          3        SEND_VAL                                                 NAN
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'var_dump'
          9        ISSET_ISEMPTY_CV                                 ~4      !0
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'in_array'
         14        FETCH_DIM_R                                      ~6      !0, 0
         15        SEND_VAL                                                 ~6
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.88 ms | 1395 KiB | 17 Q