3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo var_export(20 / 3 * 1e6, true) . "\n"; echo var_export(6.66, true) . "\n"; echo var_export(6.0, true) . "\n"; echo number_format(20/3, ini_get('precision'), '.', '') . "\n"; echo number_format(20/3 * 1e6, ini_get('precision'), '.', '') . "\n"; echo number_format(6.66, ini_get('precision'), '.', '') . "\n"; echo number_format(6.0, ini_get('precision'), '.', '') . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rUPBO
function name:  (null)
number of ops:  63
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_export'
          1        SEND_VAL                                                 6.66667e+6
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $0      
          4        CONCAT                                           ~1      $0, '%0A'
          5        ECHO                                                     ~1
    3     6        INIT_FCALL                                               'var_export'
          7        SEND_VAL                                                 6.66
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $2      
         10        CONCAT                                           ~3      $2, '%0A'
         11        ECHO                                                     ~3
    4    12        INIT_FCALL                                               'var_export'
         13        SEND_VAL                                                 6
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $4      
         16        CONCAT                                           ~5      $4, '%0A'
         17        ECHO                                                     ~5
    6    18        INIT_FCALL                                               'number_format'
         19        SEND_VAL                                                 6.66667
         20        INIT_FCALL                                               'ini_get'
         21        SEND_VAL                                                 'precision'
         22        DO_ICALL                                         $6      
         23        SEND_VAR                                                 $6
         24        SEND_VAL                                                 '.'
         25        SEND_VAL                                                 ''
         26        DO_ICALL                                         $7      
         27        CONCAT                                           ~8      $7, '%0A'
         28        ECHO                                                     ~8
    7    29        INIT_FCALL                                               'number_format'
         30        SEND_VAL                                                 6.66667e+6
         31        INIT_FCALL                                               'ini_get'
         32        SEND_VAL                                                 'precision'
         33        DO_ICALL                                         $9      
         34        SEND_VAR                                                 $9
         35        SEND_VAL                                                 '.'
         36        SEND_VAL                                                 ''
         37        DO_ICALL                                         $10     
         38        CONCAT                                           ~11     $10, '%0A'
         39        ECHO                                                     ~11
    8    40        INIT_FCALL                                               'number_format'
         41        SEND_VAL                                                 6.66
         42        INIT_FCALL                                               'ini_get'
         43        SEND_VAL                                                 'precision'
         44        DO_ICALL                                         $12     
         45        SEND_VAR                                                 $12
         46        SEND_VAL                                                 '.'
         47        SEND_VAL                                                 ''
         48        DO_ICALL                                         $13     
         49        CONCAT                                           ~14     $13, '%0A'
         50        ECHO                                                     ~14
    9    51        INIT_FCALL                                               'number_format'
         52        SEND_VAL                                                 6
         53        INIT_FCALL                                               'ini_get'
         54        SEND_VAL                                                 'precision'
         55        DO_ICALL                                         $15     
         56        SEND_VAR                                                 $15
         57        SEND_VAL                                                 '.'
         58        SEND_VAL                                                 ''
         59        DO_ICALL                                         $16     
         60        CONCAT                                           ~17     $16, '%0A'
         61        ECHO                                                     ~17
         62      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.52 ms | 1392 KiB | 19 Q