3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'en_GB'; $formatter = new NumberFormatter($locale, NumberFormatter::CURRENCY); var_dump($formatter->getTextAttribute(NumberFormatter::CURRENCY_CODE)); var_dump($formatter->getSymbol(NumberFormatter::CURRENCY_SYMBOL)); var_dump($formatter->getSymbol(NumberFormatter::DECIMAL_SEPARATOR_SYMBOL));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZIU9I
function name:  (null)
number of ops:  29
compiled vars:  !0 = $locale, !1 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'en_GB'
    3     1        NEW                                              $3      'NumberFormatter'
          2        SEND_VAR_EX                                              !0
          3        FETCH_CLASS_CONSTANT                             ~4      'NumberFormatter', 'CURRENCY'
          4        SEND_VAL_EX                                              ~4
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $3
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !1, 'getTextAttribute'
          9        FETCH_CLASS_CONSTANT                             ~7      'NumberFormatter', 'CURRENCY_CODE'
         10        SEND_VAL_EX                                              ~7
         11        DO_FCALL                                      0  $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        INIT_METHOD_CALL                                         !1, 'getSymbol'
         16        FETCH_CLASS_CONSTANT                             ~10     'NumberFormatter', 'CURRENCY_SYMBOL'
         17        SEND_VAL_EX                                              ~10
         18        DO_FCALL                                      0  $11     
         19        SEND_VAR                                                 $11
         20        DO_ICALL                                                 
    8    21        INIT_FCALL                                               'var_dump'
         22        INIT_METHOD_CALL                                         !1, 'getSymbol'
         23        FETCH_CLASS_CONSTANT                             ~13     'NumberFormatter', 'DECIMAL_SEPARATOR_SYMBOL'
         24        SEND_VAL_EX                                              ~13
         25        DO_FCALL                                      0  $14     
         26        SEND_VAR                                                 $14
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.7 ms | 998 KiB | 14 Q