3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( array ( 'kanal'=>'Hello', 'World!' ), array ( 'kanal'=>'world', 'World!' ), array ( 'kanal'=>'Hello', 'World!' ) ); $length=sizeof($arr); $out=''; for($i=0;$i<$length-1;$i++){ $out .=$arr[$i]['kanal'].', '; } $out .=' and'.$arr[$length-1]; echo $out;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/pHHop
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr, !1 = $length, !2 = $out, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   16     1        COUNT                                            ~5      !0
          2        ASSIGN                                                   !1, ~5
   17     3        ASSIGN                                                   !2, ''
   18     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->11
   19     6    >   FETCH_DIM_R                                      ~9      !0, !3
          7        FETCH_DIM_R                                      ~10     ~9, 'kanal'
          8        CONCAT                                           ~11     ~10, '%2C+'
          9        ASSIGN_OP                                     8          !2, ~11
   18    10        PRE_INC                                                  !3
         11    >   SUB                                              ~14     !1, 1
         12        IS_SMALLER                                               !3, ~14
         13      > JMPNZ                                                    ~15, ->6
   21    14    >   SUB                                              ~16     !1, 1
         15        FETCH_DIM_R                                      ~17     !0, ~16
         16        CONCAT                                           ~18     '+and', ~17
         17        ASSIGN_OP                                     8          !2, ~18
   22    18        ECHO                                                     !2
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.2 ms | 1394 KiB | 13 Q