3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counter=-360; $opacity=0; while($counter<=360) { $opacity=abs((abs($counter)%180)-90); echo("Counter ".$counter." - Opacity ".$opacity."<br>"); $counter+=10; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
Branch analysis from position: 3
filename:       /in/GRNfM
function name:  (null)
number of ops:  21
compiled vars:  !0 = $counter, !1 = $opacity
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, -360
    4     1        ASSIGN                                                   !1, 0
    5     2      > JMP                                                      ->18
    9     3    >   INIT_FCALL                                               'abs'
          4        INIT_FCALL                                               'abs'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        MOD                                              ~5      $4, 180
          8        SUB                                              ~6      ~5, 90
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
   13    12        CONCAT                                           ~9      'Counter+', !0
         13        CONCAT                                           ~10     ~9, '+-+Opacity+'
         14        CONCAT                                           ~11     ~10, !1
         15        CONCAT                                           ~12     ~11, '%3Cbr%3E'
         16        ECHO                                                     ~12
   14    17        ASSIGN_OP                                     1          !0, 10
    5    18    >   IS_SMALLER_OR_EQUAL                                      !0, 360
         19      > JMPNZ                                                    ~14, ->3
   37    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.02 ms | 1395 KiB | 15 Q