3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = [5.00000007, 5.00000008, 5.00000009]; $total = 5.00000008; for ($i = 0; $i < count($values); $i++) { if ($total == $values[$i]) { $total += 0.00000001; } echo $total . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 4
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 4
Branch analysis from position: 14
Branch analysis from position: 4
Branch analysis from position: 8
filename:       /in/RBHa3
function name:  (null)
number of ops:  15
compiled vars:  !0 = $values, !1 = $total, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 5
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->11
    6     4    >   FETCH_DIM_R                                      ~6      !0, !2
          5        IS_EQUAL                                                 !1, ~6
          6      > JMPZ                                                     ~7, ->8
    7     7    >   ASSIGN_OP                                     1          !1, 1.0e-8
    9     8    >   CONCAT                                           ~9      !1, '%0A'
          9        ECHO                                                     ~9
    5    10        PRE_INC                                                  !2
         11    >   COUNT                                            ~11     !0
         12        IS_SMALLER                                               !2, ~11
         13      > JMPNZ                                                    ~12, ->4
   10    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.88 ms | 981 KiB | 13 Q