3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'fr_CH'; $formatter = NumberFormatter::create($locale, NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1000, 'CHF'); $locale = 'de_CH'; $formatter = NumberFormatter::create($locale, NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1000, 'CHF');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PaCCi
function name:  (null)
number of ops:  25
compiled vars:  !0 = $locale, !1 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'fr_CH'
    5     1        INIT_STATIC_METHOD_CALL                                  'NumberFormatter', 'create'
          2        SEND_VAR_EX                                              !0
          3        FETCH_CLASS_CONSTANT                             ~3      'NumberFormatter', 'CURRENCY'
          4        SEND_VAL_EX                                              ~3
          5        DO_FCALL                                      0  $4      
          6        ASSIGN                                                   !1, $4
    7     7        INIT_METHOD_CALL                                         !1, 'formatCurrency'
          8        SEND_VAL_EX                                              1000
          9        SEND_VAL_EX                                              'CHF'
         10        DO_FCALL                                      0  $6      
         11        ECHO                                                     $6
    9    12        ASSIGN                                                   !0, 'de_CH'
   11    13        INIT_STATIC_METHOD_CALL                                  'NumberFormatter', 'create'
         14        SEND_VAR_EX                                              !0
         15        FETCH_CLASS_CONSTANT                             ~8      'NumberFormatter', 'CURRENCY'
         16        SEND_VAL_EX                                              ~8
         17        DO_FCALL                                      0  $9      
         18        ASSIGN                                                   !1, $9
   13    19        INIT_METHOD_CALL                                         !1, 'formatCurrency'
         20        SEND_VAL_EX                                              1000
         21        SEND_VAL_EX                                              'CHF'
         22        DO_FCALL                                      0  $11     
         23        ECHO                                                     $11
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.55 ms | 1394 KiB | 13 Q