3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = 1000; $objects = new SplObjectStorage; for($i = 0; $i < $limit; $i++){ $object = new StdClass; if(isset($objects[$object])){ die("this should never happen, but did after $i iteration"); } $objects[$object] = 1; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
Branch analysis from position: 6
filename:       /in/qMlYP
function name:  (null)
number of ops:  21
compiled vars:  !0 = $limit, !1 = $objects, !2 = $i, !3 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1000
    3     1        NEW                                              $5      'SplObjectStorage'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $5
    4     4        ASSIGN                                                   !2, 0
          5      > JMP                                                      ->18
    5     6    >   NEW                                              $9      'StdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !3, $9
    7     9        ISSET_ISEMPTY_DIM_OBJ                         0          !1, !3
         10      > JMPZ                                                     ~12, ->15
    8    11    >   ROPE_INIT                                     3  ~14     'this+should+never+happen%2C+but+did+after+'
         12        ROPE_ADD                                      1  ~14     ~14, !2
         13        ROPE_END                                      2  ~13     ~14, '+iteration'
         14      > EXIT                                                     ~13
   11    15    >   ASSIGN_DIM                                               !1, !3
         16        OP_DATA                                                  1
    4    17        PRE_INC                                                  !2
         18    >   IS_SMALLER                                               !2, !0
         19      > JMPNZ                                                    ~18, ->6
   13    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.32 ms | 1385 KiB | 13 Q