3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(0.2 + 0.1 - 0.1); $a = 0.1 + 0.2; $a -= 0.1; $b = 0.2; var_dump(array($a == $b, $a - 0.2, $b - 0.2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g9d2m
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 0.2
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, 0.3
    4     4        ASSIGN_OP                                     2          !0, 0.1
    5     5        ASSIGN                                                   !1, 0.2
    6     6        INIT_FCALL                                               'var_dump'
          7        IS_EQUAL                                         ~6      !0, !1
          8        INIT_ARRAY                                       ~7      ~6
          9        SUB                                              ~8      !0, 0.2
         10        ADD_ARRAY_ELEMENT                                ~7      ~8
         11        SUB                                              ~9      !1, 0.2
         12        ADD_ARRAY_ELEMENT                                ~7      ~9
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.54 ms | 1385 KiB | 15 Q