3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words = array('banana', 'apple', 'orange'); $arr = array(); foreach($words as $keyword) { $link = get_site_url().'/?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 = 18
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/UksU4
function name:  (null)
number of ops:  25
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, ->18
          3    > > FE_FETCH_R                                               $6, !2, ->18
    8     4    >   INIT_FCALL_BY_NAME                                       'get_site_url'
          5        DO_FCALL                                      0  $7      
          6        CONCAT                                           ~8      $7, '%2F%3Fs%3D'
          7        CONCAT                                           ~9      ~8, !2
          8        ASSIGN                                                   !3, ~9
    9     9        CONCAT                                           ~12     '%3Ca+href%3D%22', !3
         10        CONCAT                                           ~13     ~12, '+title%3D%22'
         11        CONCAT                                           ~14     ~13, !2
         12        CONCAT                                           ~15     ~14, '%22%3E'
         13        CONCAT                                           ~16     ~15, !2
         14        CONCAT                                           ~17     ~16, '%3C%2Fa%3E'
         15        ASSIGN_DIM                                               !1
         16        OP_DATA                                                  ~17
    6    17      > JMP                                                      ->3
         18    >   FE_FREE                                                  $6
   13    19        INIT_FCALL                                               'implode'
         20        SEND_VAL                                                 '+%7C+'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $18     
         23        ECHO                                                     $18
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.96 ms | 1395 KiB | 15 Q