3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = new \NumberFormatter('lt_LT', NumberFormatter::CURRENCY); echo $f->formatCurrency('2.25', $f->getTextAttribute(\NumberFormatter::CURRENCY_CODE)); $f = new \NumberFormatter('lv_LV', NumberFormatter::CURRENCY); echo $f->formatCurrency('2.25', $f->getTextAttribute(\NumberFormatter::CURRENCY_CODE)); $f = new \NumberFormatter('ie_IE', NumberFormatter::CURRENCY); echo $f->formatCurrency('2.25', $f->getTextAttribute(\NumberFormatter::CURRENCY_CODE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AiAAj
function name:  (null)
number of ops:  46
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'lt_LT'
          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                                              '2.25'
          8        INIT_METHOD_CALL                                         !0, 'getTextAttribute'
          9        FETCH_CLASS_CONSTANT                             ~5      'NumberFormatter', 'CURRENCY_CODE'
         10        SEND_VAL_EX                                              ~5
         11        DO_FCALL                                      0  $6      
         12        SEND_VAR_NO_REF_EX                                       $6
         13        DO_FCALL                                      0  $7      
         14        ECHO                                                     $7
    6    15        NEW                                              $8      'NumberFormatter'
         16        SEND_VAL_EX                                              'lv_LV'
         17        FETCH_CLASS_CONSTANT                             ~9      'NumberFormatter', 'CURRENCY'
         18        SEND_VAL_EX                                              ~9
         19        DO_FCALL                                      0          
         20        ASSIGN                                                   !0, $8
    7    21        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         22        SEND_VAL_EX                                              '2.25'
         23        INIT_METHOD_CALL                                         !0, 'getTextAttribute'
         24        FETCH_CLASS_CONSTANT                             ~12     'NumberFormatter', 'CURRENCY_CODE'
         25        SEND_VAL_EX                                              ~12
         26        DO_FCALL                                      0  $13     
         27        SEND_VAR_NO_REF_EX                                       $13
         28        DO_FCALL                                      0  $14     
         29        ECHO                                                     $14
    9    30        NEW                                              $15     'NumberFormatter'
         31        SEND_VAL_EX                                              'ie_IE'
         32        FETCH_CLASS_CONSTANT                             ~16     'NumberFormatter', 'CURRENCY'
         33        SEND_VAL_EX                                              ~16
         34        DO_FCALL                                      0          
         35        ASSIGN                                                   !0, $15
   10    36        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         37        SEND_VAL_EX                                              '2.25'
         38        INIT_METHOD_CALL                                         !0, 'getTextAttribute'
         39        FETCH_CLASS_CONSTANT                             ~19     'NumberFormatter', 'CURRENCY_CODE'
         40        SEND_VAL_EX                                              ~19
         41        DO_FCALL                                      0  $20     
         42        SEND_VAR_NO_REF_EX                                       $20
         43        DO_FCALL                                      0  $21     
         44        ECHO                                                     $21
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.87 ms | 1403 KiB | 13 Q