3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'tacocat'; $code = ''; for ($i = strlen($input) - 1; $i >= 0; $i--) { $code .= sprintf('.$input[%s]', $i); } $code .= ';'; var_dump($code);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/gTL2C
function name:  (null)
number of ops:  19
compiled vars:  !0 = $input, !1 = $code, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'tacocat'
    4     1        ASSIGN                                                   !1, ''
    6     2        STRLEN                                           ~5      !0
          3        SUB                                              ~6      ~5, 1
          4        ASSIGN                                                   !2, ~6
          5      > JMP                                                      ->12
    7     6    >   INIT_FCALL                                               'sprintf'
          7        SEND_VAL                                                 '.%24input%5B%25s%5D'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $8      
         10        ASSIGN_OP                                     8          !1, $8
    6    11        PRE_DEC                                                  !2
         12    >   IS_SMALLER_OR_EQUAL                                      0, !2
         13      > JMPNZ                                                    ~11, ->6
   10    14    >   ASSIGN_OP                                     8          !1, '%3B'
   12    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.68 ms | 1395 KiB | 17 Q