3v4l.org

run code in 300+ PHP versions simultaneously
<?php $scores = array( "Mike" => array(04, 03, 00, 07, 04, 07, 00, 01, 00, 07, 04), "Kyle" => array(07, 01, 00, 03, 04, 01, 00, 07, 03, 04, 04), "Johnny" => array(07, 07, 00, 03, 00, 04, 00, 01, 01, 04, 03), "Will" => array(03, 04, 00, 03, 04, 07, 00, 01, 00, 07, 04), "Vasques" => array(03, 01, 00, 03, 04, 07, 00, 01, 00, 07, 07) ); //start loop for rows foreach($scores as $key=>$value) { echo array_sum($value) . "<br />"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 10
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/YUjkf
function name:  (null)
number of ops:  12
compiled vars:  !0 = $scores, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1      > FE_RESET_R                                       $4      !0, ->10
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->10
          3    >   ASSIGN                                                   !2, ~5
   13     4        INIT_FCALL                                               'array_sum'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $7      
          7        CONCAT                                           ~8      $7, '%3Cbr+%2F%3E'
          8        ECHO                                                     ~8
   12     9      > JMP                                                      ->2
         10    >   FE_FREE                                                  $4
   14    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.97 ms | 1394 KiB | 15 Q