3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo locale_get_display_name('arz', 'en').PHP_EOL; $fmt = new NumberFormatter('arz', NumberFormatter::CURRENCY); echo $fmt->formatCurrency(1234567.891234567890000, 'EUR').PHP_EOL;

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LkaZ8
function name:  (null)
number of ops:  19
compiled vars:  !0 = $fmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'locale_get_display_name'
          1        SEND_VAL_EX                                              'arz'
          2        SEND_VAL_EX                                              'en'
          3        DO_FCALL                                      0  $1      
          4        CONCAT                                           ~2      $1, '%0A'
          5        ECHO                                                     ~2
    3     6        NEW                                              $3      'NumberFormatter'
          7        SEND_VAL_EX                                              'arz'
          8        FETCH_CLASS_CONSTANT                             ~4      'NumberFormatter', 'CURRENCY'
          9        SEND_VAL_EX                                              ~4
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !0, $3
    4    12        INIT_METHOD_CALL                                         !0, 'formatCurrency'
         13        SEND_VAL_EX                                              1.23457e+6
         14        SEND_VAL_EX                                              'EUR'
         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:
150.29 ms | 934 KiB | 17 Q