3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array(1,2,3); $splarr = SplFixedArray::fromArray($arr); var_dump($splarr == $arr); // Not Equal (should be) var_dump((array)$splarr == $arr); // Equal var_dump($splarr->toArray() == $arr); // Equal
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/elaM7
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arr, !1 = $splarr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        INIT_STATIC_METHOD_CALL                                      'SplFixedArray', 'fromArray'
          2        SEND_VAR                                                     !0
          3        DO_FCALL                                          0  $3      
          4        ASSIGN                                                       !1, $3
    5     5        INIT_FCALL                                                   'var_dump'
          6        IS_EQUAL                                             ~5      !1, !0
          7        SEND_VAL                                                     ~5
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'var_dump'
         10        CAST                                              7  ~7      !1
         11        IS_EQUAL                                             ~8      !0, ~7
         12        SEND_VAL                                                     ~8
         13        DO_ICALL                                                     
    7    14        INIT_FCALL                                                   'var_dump'
         15        INIT_METHOD_CALL                                             !1, 'toArray'
         16        DO_FCALL                                          0  $10     
         17        IS_EQUAL                                             ~11     !0, $10
         18        SEND_VAL                                                     ~11
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.57 ms | 2589 KiB | 14 Q