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) { $st .= substr($print,$i,$i+1); echo $st; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 8
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 8
Branch analysis from position: 22
Branch analysis from position: 8
filename:       /in/WZqqf
function name:  (null)
number of ops:  23
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                                                      ->18
    7     8    >   INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !3
         11        ADD                                              ~9      !3, 1
         12        SEND_VAL                                                 ~9
         13        DO_ICALL                                         $10     
         14        ASSIGN_OP                                     8          !2, $10
    9    15        ECHO                                                     !2
    5    16        ADD                                              ~12     !3, 2
         17        ASSIGN                                                   !3, ~12
         18    >   FETCH_CONSTANT                                   ~14     'length'
         19        CONCAT                                           ~15     !1, ~14
         20        IS_SMALLER                                               !3, ~15
         21      > JMPNZ                                                    ~16, ->8
   11    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.43 ms | 1399 KiB | 17 Q