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['kanal'].', '; } $out .=' and'.$arr[$length-1]; echo $out;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
Branch analysis from position: 6
filename:       /in/sAYa4
function name:  (null)
number of ops:  19
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                                                      ->10
   19     6    >   FETCH_DIM_R                                      ~9      !0, 'kanal'
          7        CONCAT                                           ~10     ~9, '%2C+'
          8        ASSIGN_OP                                     8          !2, ~10
   18     9        PRE_INC                                                  !3
         10    >   SUB                                              ~13     !1, 1
         11        IS_SMALLER                                               !3, ~13
         12      > JMPNZ                                                    ~14, ->6
   21    13    >   SUB                                              ~15     !1, 1
         14        FETCH_DIM_R                                      ~16     !0, ~15
         15        CONCAT                                           ~17     '+and', ~16
         16        ASSIGN_OP                                     8          !2, ~17
   22    17        ECHO                                                     !2
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.67 ms | 1393 KiB | 13 Q