3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = [5.00000008, 5.00000009, 5.00000007]; $total = 5.00000008; for($i = 0; $i < count($values); $i++) { echo ((string) __line__ . ' => ' . (string) $total . " (current total)\n"); if($total === $values[$i]){ echo ((string) __line__ . ' => ' . (string) $total . " (before increment)\n"); $total += 0.00000001; echo ((string) __line__ . ' => ' . (string) $total . " (after increment)\n"); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 4
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 26
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 4
Branch analysis from position: 30
Branch analysis from position: 4
Branch analysis from position: 26
filename:       /in/EJkNG
function name:  (null)
number of ops:  31
compiled vars:  !0 = $values, !1 = $total, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 5
    7     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->27
    8     4    >   CAST                                          6  ~6      8
          5        CONCAT                                           ~7      ~6, '+%3D%3E+'
          6        CAST                                          6  ~8      !1
          7        CONCAT                                           ~9      ~7, ~8
          8        CONCAT                                           ~10     ~9, '+%28current+total%29%0A'
          9        ECHO                                                     ~10
    9    10        FETCH_DIM_R                                      ~11     !0, !2
         11        IS_IDENTICAL                                             !1, ~11
         12      > JMPZ                                                     ~12, ->26
   10    13    >   CAST                                          6  ~13     10
         14        CONCAT                                           ~14     ~13, '+%3D%3E+'
         15        CAST                                          6  ~15     !1
         16        CONCAT                                           ~16     ~14, ~15
         17        CONCAT                                           ~17     ~16, '+%28before+increment%29%0A'
         18        ECHO                                                     ~17
   11    19        ASSIGN_OP                                     1          !1, 1.0e-8
   12    20        CAST                                          6  ~19     12
         21        CONCAT                                           ~20     ~19, '+%3D%3E+'
         22        CAST                                          6  ~21     !1
         23        CONCAT                                           ~22     ~20, ~21
         24        CONCAT                                           ~23     ~22, '+%28after+increment%29%0A'
         25        ECHO                                                     ~23
    7    26    >   PRE_INC                                                  !2
         27    >   COUNT                                            ~25     !0
         28        IS_SMALLER                                               !2, ~25
         29      > JMPNZ                                                    ~26, ->4
   14    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.29 ms | 1435 KiB | 13 Q