3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); $data = numfmt_format($fmt, 1234567.891234567890000); if(intl_is_failure(numfmt_get_error_code($fmt))) { var_dump(numfmt_get_error_message($fmt)); report_error("Formatter error"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 27
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/RLtP2
function name:  (null)
number of ops:  28
compiled vars:  !0 = $fmt, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'numfmt_create'
          1        SEND_VAL_EX                                              'de_DE'
          2        FETCH_CLASS_CONSTANT                             ~2      'NumberFormatter', 'DECIMAL'
          3        SEND_VAL_EX                                              ~2
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !0, $3
    3     6        INIT_FCALL_BY_NAME                                       'numfmt_format'
          7        SEND_VAR_EX                                              !0
          8        SEND_VAL_EX                                              1.23457e+6
          9        DO_FCALL                                      0  $5      
         10        ASSIGN                                                   !1, $5
    4    11        INIT_FCALL_BY_NAME                                       'intl_is_failure'
         12        INIT_FCALL_BY_NAME                                       'numfmt_get_error_code'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0  $7      
         15        SEND_VAR_NO_REF_EX                                       $7
         16        DO_FCALL                                      0  $8      
         17      > JMPZ                                                     $8, ->27
    5    18    >   INIT_FCALL                                               'var_dump'
         19        INIT_FCALL_BY_NAME                                       'numfmt_get_error_message'
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0  $9      
         22        SEND_VAR                                                 $9
         23        DO_ICALL                                                 
    6    24        INIT_FCALL_BY_NAME                                       'report_error'
         25        SEND_VAL_EX                                              'Formatter+error'
         26        DO_FCALL                                      0          
    7    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.17 ms | 1399 KiB | 15 Q