3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = new NumberFormatter( 'en_US', NumberFormatter::CURRENCY ); echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."\n"; echo $fmt->formatCurrency(1234567.891234567890000, "HUF")."\n"; $fmt = new NumberFormatter( 'de_DE', NumberFormatter::CURRENCY ); echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."\n"; echo $fmt->formatCurrency(1234567.891234567890000, "HUF")."\n"; $fmt = new NumberFormatter( 'hu_HU', NumberFormatter::CURRENCY ); echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."\n"; echo $fmt->formatCurrency(1234567.891234567890000, "HUF")."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cIaa3
function name:  (null)
number of ops:  55
compiled vars:  !0 = $fmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'en_US'
          2        FETCH_CLASS_CONSTANT                             ~2      'NumberFormatter', 'CURRENCY'
          3        SEND_VAL_EX                                              ~2
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
    3     6        INIT_METHOD_CALL                                         !0, 'formatCurrency'
          7        SEND_VAL_EX                                              1.23457e+6
          8        SEND_VAL_EX                                              'EUR'
          9        DO_FCALL                                      0  $5      
         10        CONCAT                                           ~6      $5, '%0A'
         11        ECHO                                                     ~6
    4    12        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         13        SEND_VAL_EX                                              1.23457e+6
         14        SEND_VAL_EX                                              'HUF'
         15        DO_FCALL                                      0  $7      
         16        CONCAT                                           ~8      $7, '%0A'
         17        ECHO                                                     ~8
    6    18        NEW                                              $9      'NumberFormatter'
         19        SEND_VAL_EX                                              'de_DE'
         20        FETCH_CLASS_CONSTANT                             ~10     'NumberFormatter', 'CURRENCY'
         21        SEND_VAL_EX                                              ~10
         22        DO_FCALL                                      0          
         23        ASSIGN                                                   !0, $9
    7    24        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         25        SEND_VAL_EX                                              1.23457e+6
         26        SEND_VAL_EX                                              'EUR'
         27        DO_FCALL                                      0  $13     
         28        CONCAT                                           ~14     $13, '%0A'
         29        ECHO                                                     ~14
    8    30        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         31        SEND_VAL_EX                                              1.23457e+6
         32        SEND_VAL_EX                                              'HUF'
         33        DO_FCALL                                      0  $15     
         34        CONCAT                                           ~16     $15, '%0A'
         35        ECHO                                                     ~16
   10    36        NEW                                              $17     'NumberFormatter'
         37        SEND_VAL_EX                                              'hu_HU'
         38        FETCH_CLASS_CONSTANT                             ~18     'NumberFormatter', 'CURRENCY'
         39        SEND_VAL_EX                                              ~18
         40        DO_FCALL                                      0          
         41        ASSIGN                                                   !0, $17
   11    42        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         43        SEND_VAL_EX                                              1.23457e+6
         44        SEND_VAL_EX                                              'EUR'
         45        DO_FCALL                                      0  $21     
         46        CONCAT                                           ~22     $21, '%0A'
         47        ECHO                                                     ~22
   12    48        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         49        SEND_VAL_EX                                              1.23457e+6
         50        SEND_VAL_EX                                              'HUF'
         51        DO_FCALL                                      0  $23     
         52        CONCAT                                           ~24     $23, '%0A'
         53        ECHO                                                     ~24
         54      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.56 ms | 1004 KiB | 13 Q