3v4l.org

run code in 200+ PHP versions simultaneously
<?php $fmt = numfmt_create('en_US', NumberFormatter::TYPE_CURRENCY ); echo numfmt_format_currency($fmt, 32.00, "USD")."\n"; $fmt = new NumberFormatter( 'en_US', NumberFormatter::CURRENCY ); echo $fmt->formatCurrency(32.00, "USD")."\n";
based on WB9eT
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QgS7U
function name:  (null)
number of ops:  24
compiled vars:  !0 = $fmt
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'numfmt_create'
         1        SEND_VAL                                                 'en_US'
         2        SEND_VAL                                                 4
         3        DO_ICALL                                         $1      
         4        QM_ASSIGN                                                !0
   4     5        INIT_FCALL                                               'numfmt_format_currency'
         6        SEND_VAR                                                 !0
         7        SEND_VAL                                                 32
         8        SEND_VAL                                                 'USD'
         9        DO_ICALL                                         $3      
        10        CONCAT                                           ~4      $3, '%0A'
        11        ASSIGN_OBJ                                               ~4
   6    12        NEW                                              $5      :26
        13        SEND_VAL_EX                                              'en_US'
        14        SEND_VAL_EX                                              2
        15        DO_FCALL                                      0          
        16        QM_ASSIGN                                                !0
   7    17        INIT_METHOD_CALL                                         !0, 'formatCurrency'
        18        SEND_VAL_EX                                              32
        19        SEND_VAL_EX                                              'USD'
        20        DO_FCALL                                      0  $8      
        21        CONCAT                                           ~9      $8, '%0A'
        22        ASSIGN_OBJ                                               ~9
        23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0