3v4l.org

run code in 300+ PHP versions simultaneously
<?php $os = new SplObjectStorage(); $arr = [ new stdClass(), new stdClass(), new stdClass() ]; $os->attach($arr[0]); $os->attach($arr[1]); $os->attach($arr[2]); var_dump($os->contains($arr[0]), $os->contains($arr[1]), $os->contains($arr[2])); // ^^ prints: true, true, true $serialized = igbinary_serialize([ 'os' => $os, 'arr' => $arr ]); unset($os, $arr); $container = igbinary_unserialize($serialized); $os = $container['os']; $arr = $container['arr']; var_dump($os->contains($arr[0]), $os->contains($arr[1]), $os->contains($arr[2])); // ^^ prints: false, false, false
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bua9T
function name:  (null)
number of ops:  85
compiled vars:  !0 = $os, !1 = $arr, !2 = $serialized, !3 = $container
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'SplObjectStorage'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    5     3        NEW                                              $7      'stdClass'
          4        DO_FCALL                                      0          
          5        INIT_ARRAY                                       ~9      $7
    6     6        NEW                                              $10     'stdClass'
          7        DO_FCALL                                      0          
          8        ADD_ARRAY_ELEMENT                                ~9      $10
    7     9        NEW                                              $12     'stdClass'
         10        DO_FCALL                                      0          
         11        ADD_ARRAY_ELEMENT                                ~9      $12
    4    12        ASSIGN                                                   !1, ~9
   10    13        INIT_METHOD_CALL                                         !0, 'attach'
         14        CHECK_FUNC_ARG                                           
         15        FETCH_DIM_FUNC_ARG                               $15     !1, 0
         16        SEND_FUNC_ARG                                            $15
         17        DO_FCALL                                      0          
   11    18        INIT_METHOD_CALL                                         !0, 'attach'
         19        CHECK_FUNC_ARG                                           
         20        FETCH_DIM_FUNC_ARG                               $17     !1, 1
         21        SEND_FUNC_ARG                                            $17
         22        DO_FCALL                                      0          
   12    23        INIT_METHOD_CALL                                         !0, 'attach'
         24        CHECK_FUNC_ARG                                           
         25        FETCH_DIM_FUNC_ARG                               $19     !1, 2
         26        SEND_FUNC_ARG                                            $19
         27        DO_FCALL                                      0          
   14    28        INIT_FCALL                                               'var_dump'
         29        INIT_METHOD_CALL                                         !0, 'contains'
         30        CHECK_FUNC_ARG                                           
         31        FETCH_DIM_FUNC_ARG                               $21     !1, 0
         32        SEND_FUNC_ARG                                            $21
         33        DO_FCALL                                      0  $22     
         34        SEND_VAR                                                 $22
         35        INIT_METHOD_CALL                                         !0, 'contains'
         36        CHECK_FUNC_ARG                                           
         37        FETCH_DIM_FUNC_ARG                               $23     !1, 1
         38        SEND_FUNC_ARG                                            $23
         39        DO_FCALL                                      0  $24     
         40        SEND_VAR                                                 $24
         41        INIT_METHOD_CALL                                         !0, 'contains'
         42        CHECK_FUNC_ARG                                           
         43        FETCH_DIM_FUNC_ARG                               $25     !1, 2
         44        SEND_FUNC_ARG                                            $25
         45        DO_FCALL                                      0  $26     
         46        SEND_VAR                                                 $26
         47        DO_ICALL                                                 
   17    48        INIT_FCALL_BY_NAME                                       'igbinary_serialize'
   18    49        INIT_ARRAY                                       ~28     !0, 'os'
   19    50        ADD_ARRAY_ELEMENT                                ~28     !1, 'arr'
         51        SEND_VAL_EX                                              ~28
         52        DO_FCALL                                      0  $29     
   17    53        ASSIGN                                                   !2, $29
   22    54        UNSET_CV                                                 !0
         55        UNSET_CV                                                 !1
   24    56        INIT_FCALL_BY_NAME                                       'igbinary_unserialize'
         57        SEND_VAR_EX                                              !2
         58        DO_FCALL                                      0  $31     
         59        ASSIGN                                                   !3, $31
   26    60        FETCH_DIM_R                                      ~33     !3, 'os'
         61        ASSIGN                                                   !0, ~33
   27    62        FETCH_DIM_R                                      ~35     !3, 'arr'
         63        ASSIGN                                                   !1, ~35
   29    64        INIT_FCALL                                               'var_dump'
         65        INIT_METHOD_CALL                                         !0, 'contains'
         66        CHECK_FUNC_ARG                                           
         67        FETCH_DIM_FUNC_ARG                               $37     !1, 0
         68        SEND_FUNC_ARG                                            $37
         69        DO_FCALL                                      0  $38     
         70        SEND_VAR                                                 $38
         71        INIT_METHOD_CALL                                         !0, 'contains'
         72        CHECK_FUNC_ARG                                           
         73        FETCH_DIM_FUNC_ARG                               $39     !1, 1
         74        SEND_FUNC_ARG                                            $39
         75        DO_FCALL                                      0  $40     
         76        SEND_VAR                                                 $40
         77        INIT_METHOD_CALL                                         !0, 'contains'
         78        CHECK_FUNC_ARG                                           
         79        FETCH_DIM_FUNC_ARG                               $41     !1, 2
         80        SEND_FUNC_ARG                                            $41
         81        DO_FCALL                                      0  $42     
         82        SEND_VAR                                                 $42
         83        DO_ICALL                                                 
   30    84      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.63 ms | 1400 KiB | 15 Q