3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o1 = new StdClass; $o2 = new StdClass; $s = new SplObjectStorage(); $s[45] = $o1; var_dump($s->contains($o1)); var_dump($s->contains($o2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pgOjF
function name:  (null)
number of ops:  24
compiled vars:  !0 = $o1, !1 = $o2, !2 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        NEW                                              $6      'StdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
    6     6        NEW                                              $9      'SplObjectStorage'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $9
    8     9        ASSIGN_DIM                                               !2, 45
         10        OP_DATA                                                  !0
    9    11        INIT_FCALL                                               'var_dump'
         12        INIT_METHOD_CALL                                         !2, 'contains'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0  $13     
         15        SEND_VAR                                                 $13
         16        DO_ICALL                                                 
   10    17        INIT_FCALL                                               'var_dump'
         18        INIT_METHOD_CALL                                         !2, 'contains'
         19        SEND_VAR_EX                                              !1
         20        DO_FCALL                                      0  $15     
         21        SEND_VAR                                                 $15
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.17 ms | 1395 KiB | 15 Q