3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( 'foo' => 10, 'bar' => 20, 'baz' => 670 ); $num=0; $total= 700; foreach($values as $key=>$value) { $num+= $value; } if ($num >= $total) { echo "Riding end"; }else{ echo $total-$num; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/SrlWP
function name:  (null)
number of ops:  16
compiled vars:  !0 = $values, !1 = $num, !2 = $total, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, 0
    9     2        ASSIGN                                                   !2, 700
   10     3      > FE_RESET_R                                       $8      !0, ->8
          4    > > FE_FETCH_R                                       ~9      $8, !3, ->8
          5    >   ASSIGN                                                   !4, ~9
   13     6        ASSIGN_OP                                     1          !1, !3
   10     7      > JMP                                                      ->4
          8    >   FE_FREE                                                  $8
   15     9        IS_SMALLER_OR_EQUAL                                      !2, !1
         10      > JMPZ                                                     ~12, ->13
   16    11    >   ECHO                                                     'Riding+end'
         12      > JMP                                                      ->15
   18    13    >   SUB                                              ~13     !2, !1
         14        ECHO                                                     ~13
   19    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
205.64 ms | 1393 KiB | 13 Q