3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nf = new \NumberFormatter("en_US", \NumberFormatter::CURRENCY); $formatted_price = $nf->formatCurrency(23.3233, "PKR"); print $formatted_price;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3jFPF
function name:  (null)
number of ops:  13
compiled vars:  !0 = $nf, !1 = $formatted_price
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'NumberFormatter'
          1        SEND_VAL_EX                                              'en_US'
          2        FETCH_CLASS_CONSTANT                             ~3      'NumberFormatter', 'CURRENCY'
          3        SEND_VAL_EX                                              ~3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    5     6        INIT_METHOD_CALL                                         !0, 'formatCurrency'
          7        SEND_VAL_EX                                              23.3233
          8        SEND_VAL_EX                                              'PKR'
          9        DO_FCALL                                      0  $6      
         10        ASSIGN                                                   !1, $6
    7    11        ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.89 ms | 1392 KiB | 13 Q