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 "\n"; echo rtrim(sprintf('%.14F', 20 / 3 * 1e6), '0.') . "\n"; echo rtrim(sprintf('%.14F', 6.66), '0.') . "\n"; echo rtrim(sprintf('%.14F', 6.0), '0.') . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uhgPL
function name:  (null)
number of ops:  50
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        ECHO                                                     '%0A'
    8    19        INIT_FCALL                                               'rtrim'
         20        INIT_FCALL                                               'sprintf'
         21        SEND_VAL                                                 '%25.14F'
         22        SEND_VAL                                                 6.66667e+6
         23        DO_ICALL                                         $6      
         24        SEND_VAR                                                 $6
         25        SEND_VAL                                                 '0.'
         26        DO_ICALL                                         $7      
         27        CONCAT                                           ~8      $7, '%0A'
         28        ECHO                                                     ~8
    9    29        INIT_FCALL                                               'rtrim'
         30        INIT_FCALL                                               'sprintf'
         31        SEND_VAL                                                 '%25.14F'
         32        SEND_VAL                                                 6.66
         33        DO_ICALL                                         $9      
         34        SEND_VAR                                                 $9
         35        SEND_VAL                                                 '0.'
         36        DO_ICALL                                         $10     
         37        CONCAT                                           ~11     $10, '%0A'
         38        ECHO                                                     ~11
   10    39        INIT_FCALL                                               'rtrim'
         40        INIT_FCALL                                               'sprintf'
         41        SEND_VAL                                                 '%25.14F'
         42        SEND_VAL                                                 6
         43        DO_ICALL                                         $12     
         44        SEND_VAR                                                 $12
         45        SEND_VAL                                                 '0.'
         46        DO_ICALL                                         $13     
         47        CONCAT                                           ~14     $13, '%0A'
         48        ECHO                                                     ~14
         49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.24 ms | 1405 KiB | 19 Q