3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=$y=0;$d[0][0]=1;$q=file(c)[0];for(;$q[$p];){$z=$q[$p++];if($z=='<')$x--;if($z=='>')$x++;if($z=='^')$y++;if($z==v)$y--;if($d[$x][$y]++<1)$t++;}echo$t;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 12
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 28
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 34
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 12
Branch analysis from position: 36
Branch analysis from position: 12
Branch analysis from position: 34
Branch analysis from position: 28
Branch analysis from position: 24
Branch analysis from position: 21
Branch analysis from position: 18
filename:       /in/sXk8n
function name:  (null)
number of ops:  38
compiled vars:  !0 = $x, !1 = $y, !2 = $d, !3 = $q, !4 = $z, !5 = $p, !6 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                           ~7      !1, 0
          1        ASSIGN                                                   !0, ~7
          2        FETCH_DIM_W                                      $9      !2, 0
          3        ASSIGN_DIM                                               $9, 0
          4        OP_DATA                                                  1
          5        INIT_FCALL                                               'file'
          6        FETCH_CONSTANT                                   ~11     'c'
          7        SEND_VAL                                                 ~11
          8        DO_ICALL                                         $12     
          9        FETCH_DIM_R                                      ~13     $12, 0
         10        ASSIGN                                                   !3, ~13
         11      > JMP                                                      ->34
         12    >   POST_INC                                         ~15     !5
         13        FETCH_DIM_R                                      ~16     !3, ~15
         14        ASSIGN                                                   !4, ~16
         15        IS_EQUAL                                                 !4, '%3C'
         16      > JMPZ                                                     ~18, ->18
         17    >   PRE_DEC                                                  !0
         18    >   IS_EQUAL                                                 !4, '%3E'
         19      > JMPZ                                                     ~20, ->21
         20    >   PRE_INC                                                  !0
         21    >   IS_EQUAL                                                 !4, '%5E'
         22      > JMPZ                                                     ~22, ->24
         23    >   PRE_INC                                                  !1
         24    >   FETCH_CONSTANT                                   ~24     'v'
         25        IS_EQUAL                                                 !4, ~24
         26      > JMPZ                                                     ~25, ->28
         27    >   PRE_DEC                                                  !1
         28    >   FETCH_DIM_RW                                     $27     !2, !0
         29        FETCH_DIM_RW                                     $28     $27, !1
         30        POST_INC                                         ~29     $28
         31        IS_SMALLER                                               ~29, 1
         32      > JMPZ                                                     ~30, ->34
         33    >   PRE_INC                                                  !6
         34    >   FETCH_DIM_R                                      ~32     !3, !5
         35      > JMPNZ                                                    ~32, ->12
         36    >   ECHO                                                     !6
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.49 ms | 1400 KiB | 15 Q