3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.06 ms | 1393 KiB | 13 Q