3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = new NumberFormatter( 'sk_SK', NumberFormatter::CURRENCY ); echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."\n"; echo $fmt->formatCurrency(1234567.891234567890000, "USD")."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JstY8
function name:  (null)
number of ops:  19
compiled vars:  !0 = $fmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'NumberFormatter'
          1        SEND_VAL_EX                                              'sk_SK'
          2        FETCH_CLASS_CONSTANT                             ~2      'NumberFormatter', 'CURRENCY'
          3        SEND_VAL_EX                                              ~2
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
    5     6        INIT_METHOD_CALL                                         !0, 'formatCurrency'
          7        SEND_VAL_EX                                              1.23457e+6
          8        SEND_VAL_EX                                              'EUR'
          9        DO_FCALL                                      0  $5      
         10        CONCAT                                           ~6      $5, '%0A'
         11        ECHO                                                     ~6
    6    12        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         13        SEND_VAL_EX                                              1.23457e+6
         14        SEND_VAL_EX                                              'USD'
         15        DO_FCALL                                      0  $7      
         16        CONCAT                                           ~8      $7, '%0A'
         17        ECHO                                                     ~8
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.33 ms | 1393 KiB | 13 Q