3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0.1; $b = 0.2; var_dump($a); var_dump($b); var_dump($a + $b); echo ($a + $b) . "\n"; var_dump(($a + $b) == 0.3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1D85B
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0.1
    4     1        ASSIGN                                                   !1, 0.2
    5     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'var_dump'
          9        ADD                                              ~6      !0, !1
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
    8    12        ADD                                              ~8      !0, !1
         13        CONCAT                                           ~9      ~8, '%0A'
         14        ECHO                                                     ~9
    9    15        INIT_FCALL                                               'var_dump'
         16        ADD                                              ~10     !0, !1
         17        IS_EQUAL                                         ~11     ~10, 0.3
         18        SEND_VAL                                                 ~11
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.21 ms | 1004 KiB | 14 Q