3v4l.org

run code in 500+ PHP versions simultaneously
<?php //echo acos(3); var_dump(acos(3) === acos(3)); var_dump(acos(3) == acos(3)); // Note that NAN is a float and becomes 0 var_dump($array = [acos(3) => 3]); var_dump(isset($array[acos(3)])); // Idem pour INF, which is infinity var_dump($array = [INF => 3]); var_dump(isset($array[INF]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N6AoL
function name:  (null)
number of ops:  45
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'acos'
          2        SEND_VAL                                                     3
          3        DO_ICALL                                             $1      
          4        INIT_FCALL                                                   'acos'
          5        SEND_VAL                                                     3
          6        DO_ICALL                                             $2      
          7        IS_IDENTICAL                                         ~3      $1, $2
          8        SEND_VAL                                                     ~3
          9        DO_ICALL                                                     
    5    10        INIT_FCALL                                                   'var_dump'
         11        INIT_FCALL                                                   'acos'
         12        SEND_VAL                                                     3
         13        DO_ICALL                                             $5      
         14        INIT_FCALL                                                   'acos'
         15        SEND_VAL                                                     3
         16        DO_ICALL                                             $6      
         17        IS_EQUAL                                             ~7      $5, $6
         18        SEND_VAL                                                     ~7
         19        DO_ICALL                                                     
    8    20        INIT_FCALL                                                   'var_dump'
         21        INIT_FCALL                                                   'acos'
         22        SEND_VAL                                                     3
         23        DO_ICALL                                             $9      
         24        INIT_ARRAY                                           ~10     3, $9
         25        ASSIGN                                               ~11     !0, ~10
         26        SEND_VAL                                                     ~11
         27        DO_ICALL                                                     
    9    28        INIT_FCALL                                                   'var_dump'
         29        INIT_FCALL                                                   'acos'
         30        SEND_VAL                                                     3
         31        DO_ICALL                                             $13     
         32        ISSET_ISEMPTY_DIM_OBJ                             0  ~14     !0, $13
         33        SEND_VAL                                                     ~14
         34        DO_ICALL                                                     
   12    35        INIT_FCALL                                                   'var_dump'
         36        INIT_ARRAY                                           ~16     3, INF
         37        ASSIGN                                               ~17     !0, ~16
         38        SEND_VAL                                                     ~17
         39        DO_ICALL                                                     
   13    40        INIT_FCALL                                                   'var_dump'
         41        ISSET_ISEMPTY_DIM_OBJ                             0  ~19     !0, INF
         42        SEND_VAL                                                     ~19
         43        DO_ICALL                                                     
         44      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.35 ms | 1386 KiB | 15 Q