3v4l.org

run code in 300+ PHP versions simultaneously
<?php $shoppingList = array('wine ', 'fish', 'bread', 'grapes', 'cheese'); foreach ($shoppingList as $item) { # echo $item . "\n"; $cool = $item . " is good\t"; $fun ="\t"; echo $fun . $cool; } echo implode($shoppingList, "\n");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/avqMh
function name:  (null)
number of ops:  16
compiled vars:  !0 = $shoppingList, !1 = $item, !2 = $cool, !3 = $fun
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, <array>
    2     1      > FE_RESET_R                                       $5      !0, ->9
          2    > > FE_FETCH_R                                               $5, !1, ->9
    4     3    >   CONCAT                                           ~6      !1, '+is+good%09'
          4        ASSIGN                                                   !2, ~6
    5     5        ASSIGN                                                   !3, '%09'
    6     6        CONCAT                                           ~9      !3, !2
          7        ECHO                                                     ~9
    2     8      > JMP                                                      ->2
          9    >   FE_FREE                                                  $5
    9    10        INIT_FCALL                                               'implode'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 '%0A'
         13        DO_ICALL                                         $10     
         14        ECHO                                                     $10
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.06 ms | 1395 KiB | 15 Q