3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'aaa'; $b = 'bbb'; $c = 'ccc'; $leng = strlen($a); // or $b or $c, whatever $out = ''; for($i=0;$i<$leng;$i++){ $out .= $a[$i]; $out .= $b[$i]; $out .= $c[$i]; } echo $out;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/PY9lE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $leng, !4 = $out, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'aaa'
    3     1        ASSIGN                                                   !1, 'bbb'
    4     2        ASSIGN                                                   !2, 'ccc'
    6     3        STRLEN                                           ~9      !0
          4        ASSIGN                                                   !3, ~9
    8     5        ASSIGN                                                   !4, ''
    9     6        ASSIGN                                                   !5, 0
          7      > JMP                                                      ->15
   10     8    >   FETCH_DIM_R                                      ~13     !0, !5
          9        ASSIGN_OP                                     8          !4, ~13
   11    10        FETCH_DIM_R                                      ~15     !1, !5
         11        ASSIGN_OP                                     8          !4, ~15
   12    12        FETCH_DIM_R                                      ~17     !2, !5
         13        ASSIGN_OP                                     8          !4, ~17
    9    14        PRE_INC                                                  !5
         15    >   IS_SMALLER                                               !5, !3
         16      > JMPNZ                                                    ~20, ->8
   15    17    >   ECHO                                                     !4
   16    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149 ms | 1007 KiB | 13 Q