3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.78 ms | 1393 KiB | 13 Q