3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.01 ms | 1396 KiB | 15 Q