3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lang="de-AT"; $currency="3333"; $formatter = new NumberFormatter($lang, NumberFormatter::DECIMAL); $formatter->setAttribute(NumberFormatter::MAX_FRACTION_DIGITS, 2); echo $formatter->format($currency), "\n", phpversion('intl');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3R1VA
function name:  (null)
number of ops:  23
compiled vars:  !0 = $lang, !1 = $currency, !2 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'de-AT'
    4     1        ASSIGN                                                   !1, '3333'
    5     2        NEW                                              $5      'NumberFormatter'
          3        SEND_VAR_EX                                              !0
          4        FETCH_CLASS_CONSTANT                             ~6      'NumberFormatter', 'DECIMAL'
          5        SEND_VAL_EX                                              ~6
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !2, $5
    6     8        INIT_METHOD_CALL                                         !2, 'setAttribute'
          9        FETCH_CLASS_CONSTANT                             ~9      'NumberFormatter', 'MAX_FRACTION_DIGITS'
         10        SEND_VAL_EX                                              ~9
         11        SEND_VAL_EX                                              2
         12        DO_FCALL                                      0          
    8    13        INIT_METHOD_CALL                                         !2, 'format'
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0  $11     
         16        ECHO                                                     $11
         17        ECHO                                                     '%0A'
         18        INIT_FCALL                                               'phpversion'
         19        SEND_VAL                                                 'intl'
         20        DO_ICALL                                         $12     
         21        ECHO                                                     $12
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.45 ms | 1009 KiB | 14 Q