3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "Sticky_Sticky_Sticky_Sticky_Sticky_"; $r = array_unique(explode("_", $s)); foreach($r as $q) { if($q == ''){break;} echo $q . '<br />'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 17
Branch analysis from position: 17
filename:       /in/CjgBZ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $s, !1 = $r, !2 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Sticky_Sticky_Sticky_Sticky_Sticky_'
    3     1        INIT_FCALL                                               'array_unique'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '_'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    4     9      > FE_RESET_R                                       $7      !1, ->17
         10    > > FE_FETCH_R                                               $7, !2, ->17
    6    11    >   IS_EQUAL                                                 !2, ''
         12      > JMPZ                                                     ~8, ->14
         13    > > JMP                                                      ->17
    7    14    >   CONCAT                                           ~9      !2, '%3Cbr+%2F%3E'
         15        ECHO                                                     ~9
    4    16      > JMP                                                      ->10
         17    >   FE_FREE                                                  $7
    9    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.07 ms | 1395 KiB | 17 Q