3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "ZEESHAN"; $reverse = ""; for($i = strlen($string)-1; $i >= 0; $i--){ $reverse .= $string[$i]; } echo $reverse;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/npPBK
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $reverse, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ZEESHAN'
    4     1        ASSIGN                                                   !1, ''
    5     2        STRLEN                                           ~5      !0
          3        SUB                                              ~6      ~5, 1
          4        ASSIGN                                                   !2, ~6
          5      > JMP                                                      ->9
    6     6    >   FETCH_DIM_R                                      ~8      !0, !2
          7        ASSIGN_OP                                     8          !1, ~8
    5     8        PRE_DEC                                                  !2
          9    >   IS_SMALLER_OR_EQUAL                                      0, !2
         10      > JMPNZ                                                    ~11, ->6
    8    11    >   ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
331.19 ms | 1393 KiB | 14 Q