3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fucked = new stdClass(); $fucked->{"some 1"} = "hey 1"; $fucked->{"some 2"} = "hey 2"; $fucked->{"some 3"} = "hey 3"; $fucked->{"some 4"} = ""; $fucked->{"some 5"} = "hey 5"; $fucked->{"some 6"} = "hey 6"; $values = []; for($i = 1; $i <= 6; ++$i) { $val = $fucked->{"some $i"}; if($val) { $values[] = $val; } } var_export($values);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 18
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 18
Branch analysis from position: 28
Branch analysis from position: 18
Branch analysis from position: 25
filename:       /in/oiYKE
function name:  (null)
number of ops:  32
compiled vars:  !0 = $fucked, !1 = $values, !2 = $i, !3 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    5     3        ASSIGN_OBJ                                               !0, 'some+1'
          4        OP_DATA                                                  'hey+1'
    6     5        ASSIGN_OBJ                                               !0, 'some+2'
          6        OP_DATA                                                  'hey+2'
    7     7        ASSIGN_OBJ                                               !0, 'some+3'
          8        OP_DATA                                                  'hey+3'
    8     9        ASSIGN_OBJ                                               !0, 'some+4'
         10        OP_DATA                                                  ''
    9    11        ASSIGN_OBJ                                               !0, 'some+5'
         12        OP_DATA                                                  'hey+5'
   10    13        ASSIGN_OBJ                                               !0, 'some+6'
         14        OP_DATA                                                  'hey+6'
   12    15        ASSIGN                                                   !1, <array>
   14    16        ASSIGN                                                   !2, 1
         17      > JMP                                                      ->26
   15    18    >   NOP                                                      
         19        FAST_CONCAT                                      ~15     'some+', !2
         20        FETCH_OBJ_R                                      ~16     !0, ~15
         21        ASSIGN                                                   !3, ~16
   17    22      > JMPZ                                                     !3, ->25
   18    23    >   ASSIGN_DIM                                               !1
         24        OP_DATA                                                  !3
   14    25    >   PRE_INC                                                  !2
         26    >   IS_SMALLER_OR_EQUAL                                      !2, 6
         27      > JMPNZ                                                    ~20, ->18
   22    28    >   INIT_FCALL                                               'var_export'
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.51 ms | 1396 KiB | 15 Q