3v4l.org

run code in 300+ PHP versions simultaneously
<? $a = new \NumberFormatter(); $a->setAttribute(\NumberFormatter::MIN_FRACTION_DIGITS, 1000); $a->setAttribute(\NumberFormatter::MAX_FRACTION_DIGITS, 1000); // by default some locales got max 2 fraction digits, that is probably not what you want echo $a->format(10) . "<br>"; // outputs 12.345,12345
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lXV3U
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'NumberFormatter'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_METHOD_CALL                                         !0, 'setAttribute'
          4        FETCH_CLASS_CONSTANT                             ~4      'NumberFormatter', 'MIN_FRACTION_DIGITS'
          5        SEND_VAL_EX                                              ~4
          6        SEND_VAL_EX                                              1000
          7        DO_FCALL                                      0          
    5     8        INIT_METHOD_CALL                                         !0, 'setAttribute'
          9        FETCH_CLASS_CONSTANT                             ~6      'NumberFormatter', 'MAX_FRACTION_DIGITS'
         10        SEND_VAL_EX                                              ~6
         11        SEND_VAL_EX                                              1000
         12        DO_FCALL                                      0          
    6    13        INIT_METHOD_CALL                                         !0, 'format'
         14        SEND_VAL_EX                                              10
         15        DO_FCALL                                      0  $8      
         16        CONCAT                                           ~9      $8, '%3Cbr%3E'
         17        ECHO                                                     ~9
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.41 ms | 1393 KiB | 13 Q