3v4l.org

run code in 300+ PHP versions simultaneously
<?php $svFormatter = new NumberFormatter('sv_SE', NumberFormatter::CURRENCY); var_dump($svFormatter->formatCurrency(13.37, 'SEK')); $enFormatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY); var_dump($enFormatter->formatCurrency(13.37, 'SEK'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6PgAV
function name:  (null)
number of ops:  27
compiled vars:  !0 = $svFormatter, !1 = $enFormatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'NumberFormatter'
          1        SEND_VAL_EX                                              'sv_SE'
          2        FETCH_CLASS_CONSTANT                             ~3      'NumberFormatter', 'CURRENCY'
          3        SEND_VAL_EX                                              ~3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !0, 'formatCurrency'
          8        SEND_VAL_EX                                              13.37
          9        SEND_VAL_EX                                              'SEK'
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
    6    13        NEW                                              $8      'NumberFormatter'
         14        SEND_VAL_EX                                              'en_US'
         15        FETCH_CLASS_CONSTANT                             ~9      'NumberFormatter', 'CURRENCY'
         16        SEND_VAL_EX                                              ~9
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !1, $8
    7    19        INIT_FCALL                                               'var_dump'
         20        INIT_METHOD_CALL                                         !1, 'formatCurrency'
         21        SEND_VAL_EX                                              13.37
         22        SEND_VAL_EX                                              'SEK'
         23        DO_FCALL                                      0  $12     
         24        SEND_VAR                                                 $12
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.83 ms | 1387 KiB | 15 Q