3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "abcdefghijklmn"; $print = strrev($str); $st=""; for($i = 0;$i<$print.length;$i=$i+2) { if($i+1 < $print.length ) $st .= substr($print,$i,$i+1); echo $st; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 8
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 8
Branch analysis from position: 27
Branch analysis from position: 8
Branch analysis from position: 20
filename:       /in/rWsMT
function name:  (null)
number of ops:  28
compiled vars:  !0 = $str, !1 = $print, !2 = $st, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'abcdefghijklmn'
    3     1        INIT_FCALL                                               'strrev'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    4     5        ASSIGN                                                   !2, ''
    5     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->23
    7     8    >   ADD                                              ~9      !3, 1
          9        FETCH_CONSTANT                                   ~10     'length'
         10        CONCAT                                           ~11     !1, ~10
         11        IS_SMALLER                                               ~9, ~11
         12      > JMPZ                                                     ~12, ->20
    8    13    >   INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !3
         16        ADD                                              ~13     !3, 1
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                         $14     
         19        ASSIGN_OP                                     8          !2, $14
   10    20    >   ECHO                                                     !2
    5    21        ADD                                              ~16     !3, 2
         22        ASSIGN                                                   !3, ~16
         23    >   FETCH_CONSTANT                                   ~18     'length'
         24        CONCAT                                           ~19     !1, ~18
         25        IS_SMALLER                                               !3, ~19
         26      > JMPNZ                                                    ~20, ->8
   12    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.83 ms | 1396 KiB | 17 Q