3v4l.org

run code in 300+ PHP versions simultaneously
<?php $terms = array(1, 2, 3, 4); echo '<p class="video-terms">'; $output = array(); foreach($terms as $term) { $link = "#"; $output[] = '<a href="'. $link .'">Item '.$term.'</a>'; } echo implode( ',', $output ); echo '</p>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/qs533
function name:  (null)
number of ops:  21
compiled vars:  !0 = $terms, !1 = $output, !2 = $term, !3 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ECHO                                                     '%3Cp+class%3D%22video-terms%22%3E'
    6     2        ASSIGN                                                   !1, <array>
    7     3      > FE_RESET_R                                       $6      !0, ->13
          4    > > FE_FETCH_R                                               $6, !2, ->13
    8     5    >   ASSIGN                                                   !3, '%23'
    9     6        CONCAT                                           ~9      '%3Ca+href%3D%22', !3
          7        CONCAT                                           ~10     ~9, '%22%3EItem+'
          8        CONCAT                                           ~11     ~10, !2
          9        CONCAT                                           ~12     ~11, '%3C%2Fa%3E'
         10        ASSIGN_DIM                                               !1
         11        OP_DATA                                                  ~12
    7    12      > JMP                                                      ->4
         13    >   FE_FREE                                                  $6
   11    14        INIT_FCALL                                               'implode'
         15        SEND_VAL                                                 '%2C'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $13     
         18        ECHO                                                     $13
   12    19        ECHO                                                     '%3C%2Fp%3E'
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.63 ms | 1395 KiB | 15 Q