3v4l.org

run code in 300+ PHP versions simultaneously
<?php $midi = array(); $a = 440; for($x = 0; $x < 127; $x++) { $midi[$x] = ($a / 32) * (2 ^ (($x - 9) / 12)); } print_r($midi); ?>
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 = 4
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 4
Branch analysis from position: 14
Branch analysis from position: 4
filename:       /in/PrISM
function name:  (null)
number of ops:  18
compiled vars:  !0 = $midi, !1 = $a, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 440
    4     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->12
    5     4    >   DIV                                              ~7      !1, 32
          5        SUB                                              ~8      !2, 9
          6        DIV                                              ~9      ~8, 12
          7        BW_XOR                                           ~10     ~9, 2
          8        MUL                                              ~11     ~7, ~10
          9        ASSIGN_DIM                                               !0, !2
         10        OP_DATA                                                  ~11
    4    11        PRE_INC                                                  !2
         12    >   IS_SMALLER                                               !2, 127
         13      > JMPNZ                                                    ~13, ->4
    7    14    >   INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.35 ms | 1399 KiB | 15 Q