3v4l.org

run code in 300+ PHP versions simultaneously
<?php $notes = array(1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6); foreach ($notes as $note) { echo '(3.5 + '.$note.') / 2 = '.round((3.5 / $note) / 2, 2); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/hFqDL
function name:  (null)
number of ops:  16
compiled vars:  !0 = $notes, !1 = $note
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $3      !0, ->14
          2    > > FE_FETCH_R                                               $3, !1, ->14
    5     3    >   CONCAT                                           ~4      '%283.5+%2B+', !1
          4        CONCAT                                           ~5      ~4, '%29+%2F+2+%3D+'
          5        INIT_FCALL                                               'round'
          6        DIV                                              ~6      3.5, !1
          7        DIV                                              ~7      ~6, 2
          8        SEND_VAL                                                 ~7
          9        SEND_VAL                                                 2
         10        DO_ICALL                                         $8      
         11        CONCAT                                           ~9      ~5, $8
         12        ECHO                                                     ~9
    4    13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $3
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.92 ms | 1395 KiB | 15 Q