3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = numfmt_create( 'de_DE', NumberFormatter::CURRENCY ); $num = "1.234.567,89 $"; var_dump($fmt->parseCurrency($num, $curr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p7kro
function name:  (null)
number of ops:  15
compiled vars:  !0 = $fmt, !1 = $num, !2 = $curr
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                             ~3      'NumberFormatter', 'CURRENCY'
          3        SEND_VAL_EX                                              ~3
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !0, $4
    3     6        ASSIGN                                                   !1, '1.234.567%2C89+%24'
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !0, 'parseCurrency'
          9        SEND_VAR_EX                                              !1
         10        SEND_VAR_EX                                              !2
         11        DO_FCALL                                      0  $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.82 ms | 1394 KiB | 18 Q