3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.56 ms | 1395 KiB | 17 Q