3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo numfmt_format($fmt, 5.656)."\n"; $fmt = numfmt_create( 'it', NumberFormatter::SPELLOUT ); echo numfmt_format($fmt, 1142)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eI1G1
function name:  (null)
number of ops:  25
compiled vars:  !0 = $fmt
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                             ~1      'NumberFormatter', 'DECIMAL'
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
    3     6        INIT_FCALL_BY_NAME                                       'numfmt_format'
          7        SEND_VAR_EX                                              !0
          8        SEND_VAL_EX                                              5.656
          9        DO_FCALL                                      0  $4      
         10        CONCAT                                           ~5      $4, '%0A'
         11        ECHO                                                     ~5
    4    12        INIT_FCALL_BY_NAME                                       'numfmt_create'
         13        SEND_VAL_EX                                              'it'
         14        FETCH_CLASS_CONSTANT                             ~6      'NumberFormatter', 'SPELLOUT'
         15        SEND_VAL_EX                                              ~6
         16        DO_FCALL                                      0  $7      
         17        ASSIGN                                                   !0, $7
    5    18        INIT_FCALL_BY_NAME                                       'numfmt_format'
         19        SEND_VAR_EX                                              !0
         20        SEND_VAL_EX                                              1142
         21        DO_FCALL                                      0  $9      
         22        CONCAT                                           ~10     $9, '%0A'
         23        ECHO                                                     ~10
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.69 ms | 1393 KiB | 13 Q