3v4l.org

run code in 300+ PHP versions simultaneously
<?php $amount = 1233234345455.67; $formatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY); echo 'en_assaaUS: ', $formatter->formatCurrency($amount, 'USD'), PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kf7bv
function name:  (null)
number of ops:  15
compiled vars:  !0 = $amount, !1 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 1.23323e+12
    6     1        NEW                                              $3      'NumberFormatter'
          2        SEND_VAL_EX                                              'en_US'
          3        FETCH_CLASS_CONSTANT                             ~4      'NumberFormatter', 'CURRENCY'
          4        SEND_VAL_EX                                              ~4
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $3
    7     7        ECHO                                                     'en_assaaUS%3A+'
          8        INIT_METHOD_CALL                                         !1, 'formatCurrency'
          9        SEND_VAR_EX                                              !0
         10        SEND_VAL_EX                                              'USD'
         11        DO_FCALL                                      0  $7      
         12        ECHO                                                     $7
         13        ECHO                                                     '%0A'
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.83 ms | 1393 KiB | 13 Q