3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new NumberFormatter('pt_BR', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'BRL') . PHP_EOL; $formatter = new NumberFormatter('es_MX', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'MXN') . PHP_EOL; $formatter = new NumberFormatter('es_AR', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'ARS') . PHP_EOL; $formatter = new NumberFormatter('es_CL', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'CLP') . PHP_EOL; $formatter = new NumberFormatter('es_CO', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'COP') . PHP_EOL; $formatter = new NumberFormatter('es_PA', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'PAB') . PHP_EOL; $formatter = new NumberFormatter('es_PE', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'PEN') . PHP_EOL; $formatter = new NumberFormatter('es_VE', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'VEF') . PHP_EOL; $formatter = new NumberFormatter('es_EC', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'USD') . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4oUC8
function name:  (null)
number of ops:  109
compiled vars:  !0 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'pt_BR'
          2        FETCH_CLASS_CONSTANT                             ~2      'NumberFormatter', 'CURRENCY'
          3        SEND_VAL_EX                                              ~2
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
    4     6        INIT_METHOD_CALL                                         !0, 'formatCurrency'
          7        SEND_VAL_EX                                              1256.66
          8        SEND_VAL_EX                                              'BRL'
          9        DO_FCALL                                      0  $5      
         10        CONCAT                                           ~6      $5, '%0A'
         11        ECHO                                                     ~6
    6    12        NEW                                              $7      'NumberFormatter'
         13        SEND_VAL_EX                                              'es_MX'
         14        FETCH_CLASS_CONSTANT                             ~8      'NumberFormatter', 'CURRENCY'
         15        SEND_VAL_EX                                              ~8
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !0, $7
    7    18        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         19        SEND_VAL_EX                                              1256.66
         20        SEND_VAL_EX                                              'MXN'
         21        DO_FCALL                                      0  $11     
         22        CONCAT                                           ~12     $11, '%0A'
         23        ECHO                                                     ~12
    9    24        NEW                                              $13     'NumberFormatter'
         25        SEND_VAL_EX                                              'es_AR'
         26        FETCH_CLASS_CONSTANT                             ~14     'NumberFormatter', 'CURRENCY'
         27        SEND_VAL_EX                                              ~14
         28        DO_FCALL                                      0          
         29        ASSIGN                                                   !0, $13
   10    30        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         31        SEND_VAL_EX                                              1256.66
         32        SEND_VAL_EX                                              'ARS'
         33        DO_FCALL                                      0  $17     
         34        CONCAT                                           ~18     $17, '%0A'
         35        ECHO                                                     ~18
   12    36        NEW                                              $19     'NumberFormatter'
         37        SEND_VAL_EX                                              'es_CL'
         38        FETCH_CLASS_CONSTANT                             ~20     'NumberFormatter', 'CURRENCY'
         39        SEND_VAL_EX                                              ~20
         40        DO_FCALL                                      0          
         41        ASSIGN                                                   !0, $19
   13    42        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         43        SEND_VAL_EX                                              1256.66
         44        SEND_VAL_EX                                              'CLP'
         45        DO_FCALL                                      0  $23     
         46        CONCAT                                           ~24     $23, '%0A'
         47        ECHO                                                     ~24
   15    48        NEW                                              $25     'NumberFormatter'
         49        SEND_VAL_EX                                              'es_CO'
         50        FETCH_CLASS_CONSTANT                             ~26     'NumberFormatter', 'CURRENCY'
         51        SEND_VAL_EX                                              ~26
         52        DO_FCALL                                      0          
         53        ASSIGN                                                   !0, $25
   16    54        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         55        SEND_VAL_EX                                              1256.66
         56        SEND_VAL_EX                                              'COP'
         57        DO_FCALL                                      0  $29     
         58        CONCAT                                           ~30     $29, '%0A'
         59        ECHO                                                     ~30
   18    60        NEW                                              $31     'NumberFormatter'
         61        SEND_VAL_EX                                              'es_PA'
         62        FETCH_CLASS_CONSTANT                             ~32     'NumberFormatter', 'CURRENCY'
         63        SEND_VAL_EX                                              ~32
         64        DO_FCALL                                      0          
         65        ASSIGN                                                   !0, $31
   19    66        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         67        SEND_VAL_EX                                              1256.66
         68        SEND_VAL_EX                                              'PAB'
         69        DO_FCALL                                      0  $35     
         70        CONCAT                                           ~36     $35, '%0A'
         71        ECHO                                                     ~36
   21    72        NEW                                              $37     'NumberFormatter'
         73        SEND_VAL_EX                                              'es_PE'
         74        FETCH_CLASS_CONSTANT                             ~38     'NumberFormatter', 'CURRENCY'
         75        SEND_VAL_EX                                              ~38
         76        DO_FCALL                                      0          
         77        ASSIGN                                                   !0, $37
   22    78        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         79        SEND_VAL_EX                                              1256.66
         80        SEND_VAL_EX                                              'PEN'
         81        DO_FCALL                                      0  $41     
         82        CONCAT                                           ~42     $41, '%0A'
         83        ECHO                                                     ~42
   24    84        NEW                                              $43     'NumberFormatter'
         85        SEND_VAL_EX                                              'es_VE'
         86        FETCH_CLASS_CONSTANT                             ~44     'NumberFormatter', 'CURRENCY'
         87        SEND_VAL_EX                                              ~44
         88        DO_FCALL                                      0          
         89        ASSIGN                                                   !0, $43
   25    90        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         91        SEND_VAL_EX                                              1256.66
         92        SEND_VAL_EX                                              'VEF'
         93        DO_FCALL                                      0  $47     
         94        CONCAT                                           ~48     $47, '%0A'
         95        ECHO                                                     ~48
   27    96        NEW                                              $49     'NumberFormatter'
         97        SEND_VAL_EX                                              'es_EC'
         98        FETCH_CLASS_CONSTANT                             ~50     'NumberFormatter', 'CURRENCY'
         99        SEND_VAL_EX                                              ~50
        100        DO_FCALL                                      0          
        101        ASSIGN                                                   !0, $49
   28   102        INIT_METHOD_CALL                                         !0, 'formatCurrency'
        103        SEND_VAL_EX                                              1256.66
        104        SEND_VAL_EX                                              'USD'
        105        DO_FCALL                                      0  $53     
        106        CONCAT                                           ~54     $53, '%0A'
        107        ECHO                                                     ~54
        108      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.4 ms | 1394 KiB | 13 Q