3v4l.org

run code in 300+ PHP versions simultaneously
<?php $container = new \ArrayObject; $save = new \ArrayObject; for ($i = 0; $i < 10; $i++) { $object = new \stdClass; $container[$i] = $object; $save[$i] = $object; $container->offsetUnset($i); } var_dump($container); var_dump($save);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
Branch analysis from position: 8
filename:       /in/OHdlj
function name:  (null)
number of ops:  28
compiled vars:  !0 = $container, !1 = $save, !2 = $i, !3 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'ArrayObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    4     3        NEW                                              $7      'ArrayObject'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $7
    6     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->19
    7     8    >   NEW                                              $11     'stdClass'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !3, $11
    8    11        ASSIGN_DIM                                               !0, !2
         12        OP_DATA                                                  !3
    9    13        ASSIGN_DIM                                               !1, !2
         14        OP_DATA                                                  !3
   10    15        INIT_METHOD_CALL                                         !0, 'offsetUnset'
         16        SEND_VAR_EX                                              !2
         17        DO_FCALL                                      0          
    6    18        PRE_INC                                                  !2
         19    >   IS_SMALLER                                               !2, 10
         20      > JMPNZ                                                    ~18, ->8
   14    21    >   INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   15    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.19 ms | 1387 KiB | 15 Q