3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string= "Went for an awesome bike"; echo $string . "</br></br>"; preg_match_all('/#(\w+)/',$string, $matches); if ( count( $matches[1]) != 0) { foreach ($matches[1] as $tag) { echo $tag . "</br></br>"; } } else { echo "There are no tags here!!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DMNmn
function name:  (null)
number of ops:  22
compiled vars:  !0 = $string, !1 = $matches, !2 = $tag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Went+for+an+awesome+bike'
    4     1        CONCAT                                           ~4      !0, '%3C%2Fbr%3E%3C%2Fbr%3E'
          2        ECHO                                                     ~4
    6     3        INIT_FCALL                                               'preg_match_all'
          4        SEND_VAL                                                 '%2F%23%28%5Cw%2B%29%2F'
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !1
          7        DO_ICALL                                                 
    9     8        FETCH_DIM_R                                      ~6      !1, 1
          9        COUNT                                            ~7      ~6
         10        IS_NOT_EQUAL                                             ~7, 0
         11      > JMPZ                                                     ~8, ->20
   11    12    >   FETCH_DIM_R                                      ~9      !1, 1
         13      > FE_RESET_R                                       $10     ~9, ->18
         14    > > FE_FETCH_R                                               $10, !2, ->18
   13    15    >   CONCAT                                           ~11     !2, '%3C%2Fbr%3E%3C%2Fbr%3E'
         16        ECHO                                                     ~11
   11    17      > JMP                                                      ->14
         18    >   FE_FREE                                                  $10
         19      > JMP                                                      ->21
   20    20    >   ECHO                                                     'There+are+no+tags+here%21%21'
   22    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.67 ms | 1395 KiB | 15 Q