3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<p style="font-size: 12px;">ASDF</p>'; for ($i=0; $i < $p->length; $i++) { $attr = $p->item($i)->getAttribute('style'); var_dump($attr); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
filename:       /in/LQKTo
function name:  (null)
number of ops:  18
compiled vars:  !0 = $s, !1 = $i, !2 = $attr, !3 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp+style%3D%22font-size%3A+12px%3B%22%3EASDF%3C%2Fp%3E'
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->14
    6     3    >   INIT_METHOD_CALL                                         !3, 'item'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $6      
          6        INIT_METHOD_CALL                                         $6, 'getAttribute'
          7        SEND_VAL_EX                                              'style'
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !2, $7
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    5    13        PRE_INC                                                  !1
         14    >   FETCH_OBJ_R                                      ~11     !3, 'length'
         15        IS_SMALLER                                               !1, ~11
         16      > JMPNZ                                                    ~12, ->3
    9    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.22 ms | 1395 KiB | 15 Q