3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0.1; $b = 0.2; $rezult = 0; for ($i=0; $i<2; $i++) { $rezult = ($a + $b); } echo 0.1 + 0.2,"\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/35EGV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $rezult, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0.1
    3     1        ASSIGN                                                   !1, 0.2
    5     2        ASSIGN                                                   !2, 0
    6     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->8
    7     5    >   ADD                                              ~8      !0, !1
          6        ASSIGN                                                   !2, ~8
    6     7        PRE_INC                                                  !3
          8    >   IS_SMALLER                                               !3, 2
          9      > JMPNZ                                                    ~11, ->5
   10    10    >   ECHO                                                     0.3
         11        ECHO                                                     '%0A'
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.02 ms | 1393 KiB | 13 Q