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 = 10
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/eXkJm
function name:  (null)
number of ops:  17
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, ->10
          2    > > FE_FETCH_R                                               $5, !1, ->10
    4     3    >   CONCAT                                           ~6      !1, 'is+good'
          4        CONCAT                                           ~7      ~6, '%09'
          5        ASSIGN                                                   !2, ~7
    5     6        ASSIGN                                                   !3, '%09'
    6     7        CONCAT                                           ~10     !3, !2
          8        ECHO                                                     ~10
    2     9      > JMP                                                      ->2
         10    >   FE_FREE                                                  $5
    9    11        INIT_FCALL                                               'implode'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 '%0A'
         14        DO_ICALL                                         $11     
         15        ECHO                                                     $11
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.73 ms | 1399 KiB | 15 Q