3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ox = 10; $oy = 10; $x = 15; $y = 15; $sx = ($ox < $x)?1:-1; $sy = ($oy < $y)?1:-1; var_dump($sx,$sy); //Test collisions for each cell along deplacement for($dx = $ox+$sx; $sx*$dx <= $sx*$x; $dx += $sx){ for($dy = $oy+$sy; $sy*$dy <= $sy*$y; $dy += $sy){ var_dump(array($dx,$dy)); $this->_handleCollisions($this->_grid[$dx][$dy], $gridObject); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 23
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 26
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 23
Branch analysis from position: 51
Branch analysis from position: 23
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 26
Branch analysis from position: 46
Branch analysis from position: 26
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
filename:       /in/9K1ru
function name:  (null)
number of ops:  52
compiled vars:  !0 = $ox, !1 = $oy, !2 = $x, !3 = $y, !4 = $sx, !5 = $sy, !6 = $dx, !7 = $dy, !8 = $gridObject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    4     1        ASSIGN                                                   !1, 10
    5     2        ASSIGN                                                   !2, 15
    6     3        ASSIGN                                                   !3, 15
    8     4        IS_SMALLER                                               !0, !2
          5      > JMPZ                                                     ~13, ->8
          6    >   QM_ASSIGN                                        ~14     1
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~14     -1
          9    >   ASSIGN                                                   !4, ~14
    9    10        IS_SMALLER                                               !1, !3
         11      > JMPZ                                                     ~16, ->14
         12    >   QM_ASSIGN                                        ~17     1
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~17     -1
         15    >   ASSIGN                                                   !5, ~17
   11    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !4
         18        SEND_VAR                                                 !5
         19        DO_ICALL                                                 
   14    20        ADD                                              ~20     !0, !4
         21        ASSIGN                                                   !6, ~20
         22      > JMP                                                      ->47
   15    23    >   ADD                                              ~22     !1, !5
         24        ASSIGN                                                   !7, ~22
         25      > JMP                                                      ->42
   16    26    >   INIT_FCALL                                               'var_dump'
         27        INIT_ARRAY                                       ~24     !6
         28        ADD_ARRAY_ELEMENT                                ~24     !7
         29        SEND_VAL                                                 ~24
         30        DO_ICALL                                                 
   17    31        FETCH_THIS                                       $26     
         32        INIT_METHOD_CALL                                         $26, '_handleCollisions'
         33        CHECK_FUNC_ARG                                           
         34        FETCH_THIS                                       $27     
         35        FETCH_OBJ_FUNC_ARG                               $28     $27, '_grid'
         36        FETCH_DIM_FUNC_ARG                               $29     $28, !6
         37        FETCH_DIM_FUNC_ARG                               $30     $29, !7
         38        SEND_FUNC_ARG                                            $30
         39        SEND_VAR_EX                                              !8
         40        DO_FCALL                                      0          
   15    41        ASSIGN_OP                                     1          !7, !5
         42    >   MUL                                              ~33     !5, !7
         43        MUL                                              ~34     !5, !3
         44        IS_SMALLER_OR_EQUAL                                      ~33, ~34
         45      > JMPNZ                                                    ~35, ->26
   14    46    >   ASSIGN_OP                                     1          !6, !4
         47    >   MUL                                              ~37     !4, !6
         48        MUL                                              ~38     !4, !2
         49        IS_SMALLER_OR_EQUAL                                      ~37, ~38
         50      > JMPNZ                                                    ~39, ->23
   19    51    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.97 ms | 1392 KiB | 15 Q