3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::CURRENCY ); $return = $fmt->formatCurrency((float) 'asd', 'de_DE'); var_dump(numfmt_get_error_message($fmt), intl_is_failure($fmt->getErrorCode()), $return); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3C5Cn
function name:  (null)
number of ops:  26
compiled vars:  !0 = $fmt, !1 = $return
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'NumberFormatter'
          1        SEND_VAL_EX                                              'de_DE'
          2        FETCH_CLASS_CONSTANT                             ~3      'NumberFormatter', 'CURRENCY'
          3        SEND_VAL_EX                                              ~3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    3     6        INIT_METHOD_CALL                                         !0, 'formatCurrency'
          7        CAST                                          5  ~6      'asd'
          8        SEND_VAL_EX                                              ~6
          9        SEND_VAL_EX                                              'de_DE'
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !1, $7
    4    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL_BY_NAME                                       'numfmt_get_error_message'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0  $9      
         16        SEND_VAR                                                 $9
         17        INIT_FCALL_BY_NAME                                       'intl_is_failure'
         18        INIT_METHOD_CALL                                         !0, 'getErrorCode'
         19        DO_FCALL                                      0  $10     
         20        SEND_VAR_NO_REF_EX                                       $10
         21        DO_FCALL                                      0  $11     
         22        SEND_VAR                                                 $11
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
    5    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.8 ms | 1387 KiB | 21 Q