3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf("%0.5f\n", 1.3760198765); printf("%0.10f\n", 1.37601 + 250 * 0.00001); echo "\n"; printf("%0.20f\n", 0.2); printf("%0.20f\n", 0.3); var_dump(0.3 == 0.1+0.1+0.1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gF6sb
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'printf'
          1        SEND_VAL                                                 '%250.5f%0A'
          2        SEND_VAL                                                 1.37602
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'printf'
          5        SEND_VAL                                                 '%250.10f%0A'
          6        SEND_VAL                                                 1.37851
          7        DO_ICALL                                                 
    6     8        ECHO                                                     '%0A'
    8     9        INIT_FCALL                                               'printf'
         10        SEND_VAL                                                 '%250.20f%0A'
         11        SEND_VAL                                                 0.2
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'printf'
         14        SEND_VAL                                                 '%250.20f%0A'
         15        SEND_VAL                                                 0.3
         16        DO_ICALL                                                 
   11    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAL                                                 <false>
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.89 ms | 1395 KiB | 17 Q