3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = NumberFormatter::create($locale, NumberFormatter::DEFAULT_STYLE, null); $formatter->setAttribute(NumberFormatter::FRACTION_DIGITS, 2); print $formatter->format(65.65);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J6LZv
function name:  (null)
number of ops:  17
compiled vars:  !0 = $formatter, !1 = $locale
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_STATIC_METHOD_CALL                                  'NumberFormatter', 'create'
          1        SEND_VAR_EX                                              !1
          2        FETCH_CLASS_CONSTANT                             ~2      'NumberFormatter', 'DEFAULT_STYLE'
          3        SEND_VAL_EX                                              ~2
          4        SEND_VAL_EX                                              null
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !0, $3
    3     7        INIT_METHOD_CALL                                         !0, 'setAttribute'
          8        FETCH_CLASS_CONSTANT                             ~5      'NumberFormatter', 'FRACTION_DIGITS'
          9        SEND_VAL_EX                                              ~5
         10        SEND_VAL_EX                                              2
         11        DO_FCALL                                      0          
    4    12        INIT_METHOD_CALL                                         !0, 'format'
         13        SEND_VAL_EX                                              65.65
         14        DO_FCALL                                      0  $7      
         15        ECHO                                                     $7
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.67 ms | 1393 KiB | 13 Q