3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "Ебал твою тупость"; //способ 1 $length = mb_strlen($str); for ($i=1; $i <= $length; $i++) { //echo $i . "\n"; $symbol = mb_substr($str, -$i, 1); echo $symbol; echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
Branch analysis from position: 7
filename:       /in/T5HLN
function name:  (null)
number of ops:  20
compiled vars:  !0 = $str, !1 = $length, !2 = $i, !3 = $symbol
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%D0%95%D0%B1%D0%B0%D0%BB+%D1%82%D0%B2%D0%BE%D1%8E+%D1%82%D1%83%D0%BF%D0%BE%D1%81%D1%82%D1%8C'
    6     1        INIT_FCALL                                                   'mb_strlen'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $5      
          4        ASSIGN                                                       !1, $5
    8     5        ASSIGN                                                       !2, 1
          6      > JMP                                                          ->17
   11     7    >   INIT_FCALL                                                   'mb_substr'
          8        SEND_VAR                                                     !0
          9        MUL                                                  ~8      !2, -1
         10        SEND_VAL                                                     ~8
         11        SEND_VAL                                                     1
         12        DO_ICALL                                             $9      
         13        ASSIGN                                                       !3, $9
   12    14        ECHO                                                         !3
   13    15        ECHO                                                         '%0A'
    8    16        PRE_INC                                                      !2
         17    >   IS_SMALLER_OR_EQUAL                                          !2, !1
         18      > JMPNZ                                                        ~12, ->7
   15    19    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.06 ms | 2554 KiB | 15 Q