3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new NumberFormatter('ru_RU', NumberFormatter::CURRENCY); $formatter->setSymbol(NumberFormatter::CURRENCY_SYMBOL, 'RUR1'); $formatter->setSymbol(NumberFormatter::INTL_CURRENCY_SYMBOL, 'RUR2'); echo $formatter->formatCurrency(123, 'RUR');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7pPWr
function name:  (null)
number of ops:  22
compiled vars:  !0 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'ru_RU'
          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, 'setSymbol'
          7        FETCH_CLASS_CONSTANT                             ~5      'NumberFormatter', 'CURRENCY_SYMBOL'
          8        SEND_VAL_EX                                              ~5
          9        SEND_VAL_EX                                              'RUR1'
         10        DO_FCALL                                      0          
    5    11        INIT_METHOD_CALL                                         !0, 'setSymbol'
         12        FETCH_CLASS_CONSTANT                             ~7      'NumberFormatter', 'INTL_CURRENCY_SYMBOL'
         13        SEND_VAL_EX                                              ~7
         14        SEND_VAL_EX                                              'RUR2'
         15        DO_FCALL                                      0          
    6    16        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         17        SEND_VAL_EX                                              123
         18        SEND_VAL_EX                                              'RUR'
         19        DO_FCALL                                      0  $9      
         20        ECHO                                                     $9
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
299.11 ms | 1010 KiB | 13 Q