3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = 0; $n = 0; $m = 0; $list = array(8,1,7,-7,2,4,5,-14,0,1); for ($i=0;$i<=9;$i++) { if ($list[$i] >= 4) { $total = $total + $list[$i]; $m = $m + 1; } if ($list[$i] = 0) { $n = $n + 1; } } echo "The sum of the bigges is ".$total; echo "There were ".$n." zeros and ".$m." biggies." ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
Branch analysis from position: 6
Branch analysis from position: 19
Branch analysis from position: 14
filename:       /in/78ZLh
function name:  (null)
number of ops:  30
compiled vars:  !0 = $total, !1 = $n, !2 = $m, !3 = $list, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, 0
    4     2        ASSIGN                                                   !2, 0
    5     3        ASSIGN                                                   !3, <array>
    6     4        ASSIGN                                                   !4, 0
          5      > JMP                                                      ->20
    7     6    >   FETCH_DIM_R                                      ~10     !3, !4
          7        IS_SMALLER_OR_EQUAL                                      4, ~10
          8      > JMPZ                                                     ~11, ->14
    8     9    >   FETCH_DIM_R                                      ~12     !3, !4
         10        ADD                                              ~13     !0, ~12
         11        ASSIGN                                                   !0, ~13
    9    12        ADD                                              ~15     !2, 1
         13        ASSIGN                                                   !2, ~15
   11    14    >   ASSIGN_DIM                                       ~17     !3, !4
         15        OP_DATA                                                  0
         16      > JMPZ                                                     ~17, ->19
   12    17    >   ADD                                              ~18     !1, 1
         18        ASSIGN                                                   !1, ~18
    6    19    >   PRE_INC                                                  !4
         20    >   IS_SMALLER_OR_EQUAL                                      !4, 9
         21      > JMPNZ                                                    ~21, ->6
   15    22    >   CONCAT                                           ~22     'The+sum+of+the+bigges+is+', !0
         23        ECHO                                                     ~22
   16    24        CONCAT                                           ~23     'There+were+', !1
         25        CONCAT                                           ~24     ~23, '+zeros+and+'
         26        CONCAT                                           ~25     ~24, !2
         27        CONCAT                                           ~26     ~25, '+biggies.'
         28        ECHO                                                     ~26
   17    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.11 ms | 1386 KiB | 13 Q