3v4l.org

run code in 500+ PHP versions simultaneously
<?php $fmt = numfmt_create('en_US', NumberFormatter::DECIMAL); numfmt_set_attribute($fmt, NumberFormatter::MIN_FRACTION_DIGITS, 2); echo numfmt_format_currency($fmt, 32.00, "EUR")."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IRhPQ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $fmt
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                           'numfmt_create'
          1        SEND_VAL_EX                                                  'en_US'
          2        FETCH_CLASS_CONSTANT                                 ~1      'NumberFormatter', 'DECIMAL'
          3        SEND_VAL_EX                                                  ~1
          4        DO_FCALL                                          0  $2      
          5        ASSIGN                                                       !0, $2
    4     6        INIT_FCALL_BY_NAME                                           'numfmt_set_attribute'
          7        SEND_VAR_EX                                                  !0
          8        FETCH_CLASS_CONSTANT                                 ~4      'NumberFormatter', 'MIN_FRACTION_DIGITS'
          9        SEND_VAL_EX                                                  ~4
         10        SEND_VAL_EX                                                  2
         11        DO_FCALL                                          0          
    5    12        INIT_FCALL_BY_NAME                                           'numfmt_format_currency'
         13        SEND_VAR_EX                                                  !0
         14        SEND_VAL_EX                                                  32
         15        SEND_VAL_EX                                                  'EUR'
         16        DO_FCALL                                          0  $6      
         17        CONCAT                                               ~7      $6, '%0A'
         18        ECHO                                                         ~7
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
135.91 ms | 474 KiB | 7 Q