3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo print_r(0.1 + 0.2, true) . "\n"; echo "Old precision: " . ini_set("precision", -1) . "\n"; echo print_r(0.1 + 0.2, true) . "\n"; echo "Round with 14: " . print_r(round(0.1 + 0.2, 14), true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qr0Fh
function name:  (null)
number of ops:  30
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        SEND_VAL                                                 0.3
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $0      
          4        CONCAT                                           ~1      $0, '%0A'
          5        ECHO                                                     ~1
    4     6        INIT_FCALL                                               'ini_set'
          7        SEND_VAL                                                 'precision'
          8        SEND_VAL                                                 -1
          9        DO_ICALL                                         $2      
         10        CONCAT                                           ~3      'Old+precision%3A+', $2
         11        CONCAT                                           ~4      ~3, '%0A'
         12        ECHO                                                     ~4
    5    13        INIT_FCALL                                               'print_r'
         14        SEND_VAL                                                 0.3
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $5      
         17        CONCAT                                           ~6      $5, '%0A'
         18        ECHO                                                     ~6
    6    19        INIT_FCALL                                               'print_r'
         20        INIT_FCALL                                               'round'
         21        SEND_VAL                                                 0.3
         22        SEND_VAL                                                 14
         23        DO_ICALL                                         $7      
         24        SEND_VAR                                                 $7
         25        SEND_VAL                                                 <true>
         26        DO_ICALL                                         $8      
         27        CONCAT                                           ~9      'Round+with+14%3A+', $8
         28        ECHO                                                     ~9
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.09 ms | 1395 KiB | 19 Q