3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(4.22/0.01 == (int)(4.22/0.01)); // false var_dump([ '4.22*(1/0.01)' => 4.22*(1/0.01), '4.22/0.01' => 4.22/0.01, '(int)(4.22/0.01)' => (int)(4.22/0.01), '(int)(string)(4.22/0.01)' => (int)(string)(4.22/0.01) ]); var_dump(4.22*(1/0.01) == (int)(4.22*(1/0.01))); // true var_dump((string)(4.22/0.01) == (int)(string)(4.22/0.01)); // true var_dump(round(4.22/0.01, 4) == (int)round(4.22/0.01, 4)); // true var_dump(bcdiv((string)4.22,(string)0.01, 10));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6fSe8
function name:  (null)
number of ops:  51
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        CAST                                          4  ~0      422
          2        IS_EQUAL                                         ~1      ~0, 422
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'var_dump'
    5     6        INIT_ARRAY                                       ~3      422, '4.22%2A%281%2F0.01%29'
          7        ADD_ARRAY_ELEMENT                                ~3      422, '4.22%2F0.01'
    7     8        CAST                                          4  ~4      422
          9        ADD_ARRAY_ELEMENT                                ~3      ~4, '%28int%29%284.22%2F0.01%29'
    8    10        CAST                                          6  ~5      422
         11        CAST                                          4  ~6      ~5
         12        ADD_ARRAY_ELEMENT                                ~3      ~6, '%28int%29%28string%29%284.22%2F0.01%29'
         13        SEND_VAL                                                 ~3
    4    14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'var_dump'
         16        CAST                                          4  ~8      422
         17        IS_EQUAL                                         ~9      ~8, 422
         18        SEND_VAL                                                 ~9
         19        DO_ICALL                                                 
   12    20        INIT_FCALL                                               'var_dump'
         21        CAST                                          6  ~11     422
         22        CAST                                          6  ~12     422
         23        CAST                                          4  ~13     ~12
         24        IS_EQUAL                                         ~14     ~11, ~13
         25        SEND_VAL                                                 ~14
         26        DO_ICALL                                                 
   13    27        INIT_FCALL                                               'var_dump'
         28        INIT_FCALL                                               'round'
         29        SEND_VAL                                                 422
         30        SEND_VAL                                                 4
         31        DO_ICALL                                         $16     
         32        INIT_FCALL                                               'round'
         33        SEND_VAL                                                 422
         34        SEND_VAL                                                 4
         35        DO_ICALL                                         $17     
         36        CAST                                          4  ~18     $17
         37        IS_EQUAL                                         ~19     $16, ~18
         38        SEND_VAL                                                 ~19
         39        DO_ICALL                                                 
   15    40        INIT_FCALL                                               'var_dump'
         41        INIT_FCALL_BY_NAME                                       'bcdiv'
         42        CAST                                          6  ~21     4.22
         43        SEND_VAL_EX                                              ~21
         44        CAST                                          6  ~22     0.01
         45        SEND_VAL_EX                                              ~22
         46        SEND_VAL_EX                                              10
         47        DO_FCALL                                      0  $23     
         48        SEND_VAR                                                 $23
         49        DO_ICALL                                                 
         50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.13 ms | 1451 KiB | 15 Q