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 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
Branch analysis from position: 4
filename:       /in/hB5hB
function name:  (null)
number of ops:  19
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                                                      ->13
    5     4    >   FETCH_CONSTANT                                   ~6      'x'
          5        DIV                                              ~8      !1, 32
          6        SUB                                              ~9      !2, 9
          7        DIV                                              ~10     ~9, 12
          8        BW_XOR                                           ~11     ~10, 2
          9        MUL                                              ~12     ~8, ~11
         10        ASSIGN_DIM                                               !0, ~6
         11        OP_DATA                                                  ~12
    4    12        PRE_INC                                                  !2
         13    >   IS_SMALLER                                               !2, 127
         14      > JMPNZ                                                    ~14, ->4
    7    15    >   INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.18 ms | 1395 KiB | 15 Q