3v4l.org

run code in 500+ PHP versions simultaneously
<?php $NaN = sqrt(-1); var_dump($NaN === $NaN); var_dump(array($NaN) === array($NaN)); $a = array($NaN); $b = $a; var_dump($a === $b); reset($b); var_dump($a === $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gHjG0
function name:  (null)
number of ops:  29
compiled vars:  !0 = $NaN, !1 = $a, !2 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'sqrt'
          1        SEND_VAL                                                     -1
          2        DO_ICALL                                             $3      
          3        ASSIGN                                                       !0, $3
    5     4        INIT_FCALL                                                   'var_dump'
          5        IS_IDENTICAL                                         ~5      !0, !0
          6        SEND_VAL                                                     ~5
          7        DO_ICALL                                                     
    6     8        INIT_FCALL                                                   'var_dump'
          9        INIT_ARRAY                                           ~7      !0
         10        INIT_ARRAY                                           ~8      !0
         11        IS_IDENTICAL                                         ~9      ~7, ~8
         12        SEND_VAL                                                     ~9
         13        DO_ICALL                                                     
    8    14        INIT_ARRAY                                           ~11     !0
         15        ASSIGN                                                       !1, ~11
    9    16        ASSIGN                                                       !2, !1
   11    17        INIT_FCALL                                                   'var_dump'
         18        IS_IDENTICAL                                         ~14     !1, !2
         19        SEND_VAL                                                     ~14
         20        DO_ICALL                                                     
   13    21        INIT_FCALL                                                   'reset'
         22        SEND_REF                                                     !2
         23        DO_ICALL                                                     
   15    24        INIT_FCALL                                                   'var_dump'
         25        IS_IDENTICAL                                         ~17     !1, !2
         26        SEND_VAL                                                     ~17
         27        DO_ICALL                                                     
         28      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.38 ms | 3302 KiB | 16 Q