3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = array(1, 2, 5, 6, 9, 3, 6, 32, 54, 123, 765, 234, 754, 234, 321, 43564, 467, 4523, 7645, 345, 234, 764, 24236, 3564562, 365362, 13536, 6743, 74567, 7464564, 467476, 245); $n = count($t); $s = 0; for ($i = 0; $i < $n; $i++) { $s += round($t[$i] * 2 / 3); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/8Wl4t
function name:  (null)
number of ops:  17
compiled vars:  !0 = $t, !1 = $n, !2 = $s, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~5      !0
          2        ASSIGN                                                   !1, ~5
    5     3        ASSIGN                                                   !2, 0
    6     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->14
    7     6    >   INIT_FCALL                                               'round'
          7        FETCH_DIM_R                                      ~9      !0, !3
          8        MUL                                              ~10     ~9, 2
          9        DIV                                              ~11     ~10, 3
         10        SEND_VAL                                                 ~11
         11        DO_ICALL                                         $12     
         12        ASSIGN_OP                                     1          !2, $12
    6    13        PRE_INC                                                  !3
         14    >   IS_SMALLER                                               !3, !1
         15      > JMPNZ                                                    ~15, ->6
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.73 ms | 1395 KiB | 15 Q