3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words = array('banana', 'apple', 'orange'); $arr = array(); foreach($words as $keyword) { $link = "http://localhost/site".'/?s='.$keyword; $arr[] = '<a href="'.$link.'" title="'.$keyword.'">'.$keyword.'</a>'; } echo implode(' | ', $arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/Ct9ME
function name:  (null)
number of ops:  22
compiled vars:  !0 = $words, !1 = $arr, !2 = $keyword, !3 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2      > FE_RESET_R                                       $6      !0, ->15
          3    > > FE_FETCH_R                                               $6, !2, ->15
    8     4    >   CONCAT                                           ~7      'http%3A%2F%2Flocalhost%2Fsite%2F%3Fs%3D', !2
          5        ASSIGN                                                   !3, ~7
    9     6        CONCAT                                           ~10     '%3Ca+href%3D%22', !3
          7        CONCAT                                           ~11     ~10, '%22+title%3D%22'
          8        CONCAT                                           ~12     ~11, !2
          9        CONCAT                                           ~13     ~12, '%22%3E'
         10        CONCAT                                           ~14     ~13, !2
         11        CONCAT                                           ~15     ~14, '%3C%2Fa%3E'
         12        ASSIGN_DIM                                               !1
         13        OP_DATA                                                  ~15
    6    14      > JMP                                                      ->3
         15    >   FE_FREE                                                  $6
   13    16        INIT_FCALL                                               'implode'
         17        SEND_VAL                                                 '+%7C+'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $16     
         20        ECHO                                                     $16
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.31 ms | 1400 KiB | 15 Q