3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0.2; $b = 0.7; $c = $a + $b; $d = 0.9; var_dump($c); var_dump($c === $d); var_dump(round($c, 1)); var_dump(round($c, 1) === $d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pkWSB
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0.2
    3     1        ASSIGN                                                   !1, 0.7
    4     2        ADD                                              ~6      !0, !1
          3        ASSIGN                                                   !2, ~6
    5     4        ASSIGN                                                   !3, 0.9
    7     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'var_dump'
          9        IS_IDENTICAL                                     ~10     !2, !3
         10        SEND_VAL                                                 ~10
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'round'
         14        SEND_VAR                                                 !2
         15        SEND_VAL                                                 1
         16        DO_ICALL                                         $12     
         17        SEND_VAR                                                 $12
         18        DO_ICALL                                                 
   10    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'round'
         21        SEND_VAR                                                 !2
         22        SEND_VAL                                                 1
         23        DO_ICALL                                         $14     
         24        IS_IDENTICAL                                     ~15     !3, $14
         25        SEND_VAL                                                 ~15
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.84 ms | 1395 KiB | 17 Q