3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.38 ms | 1395 KiB | 15 Q